[Swift-commit] r8238 - SwiftApps/subjobs
ketan at ci.uchicago.edu
ketan at ci.uchicago.edu
Tue Sep 9 12:53:59 CDT 2014
Author: ketan
Date: 2014-09-09 12:53:59 -0500 (Tue, 09 Sep 2014)
New Revision: 8238
Added:
SwiftApps/subjobs/subjob.sh
Modified:
SwiftApps/subjobs/runbash.sh
Log:
outer script
Modified: SwiftApps/subjobs/runbash.sh
===================================================================
--- SwiftApps/subjobs/runbash.sh 2014-09-09 17:51:57 UTC (rev 8237)
+++ SwiftApps/subjobs/runbash.sh 2014-09-09 17:53:59 UTC (rev 8238)
@@ -1,46 +1,5 @@
#!/bin/bash
#To run:
-#qsub -n 256 -t 45 --mode script runbash.sh
+qsub -n 256 -t 45 --mode script subjob.sh
-# Note: This path is for Cetus only
-#export PATH=/soft/cobalt/cetus/bgq_hardware_mapper:$PATH
-# Note: This path is for Mira or Vesta
-export PATH=/soft/cobalt/bgq_hardware_mapper:$PATH
-
-#build app
-mpixlc mpicatnap.c -o mpicatnap
-
-SHAPE="1x2x2x2x1"
-CORNERS=$(get-corners.py $COBALT_PARTNAME $SHAPE)
-
-
-# Set this low for testing.
-# Consult with systems if you need it > 128
-MAXRUNJOB=64
-
-i=0
-for j in $(seq 1 200)
-do
- for CORNER in $CORNERS
- do
- echo "Run $i corner $CORNER"
- stime=$(shuf -i 1-10 -n 1)
- runjob --block $COBALT_PARTNAME --corner $CORNER --shape $SHAPE -p 1 --np 8 --timeout 30 : mpicatnap in.data out.data $stime >RUNJOB.$j-$i 2>&1 &
- # Important - give some time for runjob to get initialized
- sleep 6
- i=$((i+1))
- if [ $i -ge $MAXRUNJOB ]; then
- echo "Reached MAXRUNJOB $MAXRUNJOB"
- break;
- fi
- done
- # The runjobs were backgrounded, wait for them to finish
- wait
- echo "Done $i"
- i=0
-done
-
-# Cobalt job ends when this script exits
-exit 0
-
Added: SwiftApps/subjobs/subjob.sh
===================================================================
--- SwiftApps/subjobs/subjob.sh (rev 0)
+++ SwiftApps/subjobs/subjob.sh 2014-09-09 17:53:59 UTC (rev 8238)
@@ -0,0 +1,46 @@
+#!/bin/bash
+
+#To run:
+#qsub -n 256 -t 45 --mode script runbash.sh
+
+# Note: This path is for Cetus only
+#export PATH=/soft/cobalt/cetus/bgq_hardware_mapper:$PATH
+# Note: This path is for Mira or Vesta
+export PATH=/soft/cobalt/bgq_hardware_mapper:$PATH
+
+#build app
+mpixlc mpicatnap.c -o mpicatnap
+
+SHAPE="1x2x2x2x1"
+CORNERS=$(get-corners.py $COBALT_PARTNAME $SHAPE)
+
+
+# Set this low for testing.
+# Consult with systems if you need it > 128
+MAXRUNJOB=64
+
+i=0
+for j in $(seq 1 200)
+do
+ for CORNER in $CORNERS
+ do
+ echo "Run $i corner $CORNER"
+ stime=$(shuf -i 1-10 -n 1)
+ runjob --block $COBALT_PARTNAME --corner $CORNER --shape $SHAPE -p 1 --np 8 --timeout 30 : mpicatnap in.data out.data $stime >RUNJOB.$j-$i 2>&1 &
+ # Important - give some time for runjob to get initialized
+ sleep 6
+ i=$((i+1))
+ if [ $i -ge $MAXRUNJOB ]; then
+ echo "Reached MAXRUNJOB $MAXRUNJOB"
+ break;
+ fi
+ done
+ # The runjobs were backgrounded, wait for them to finish
+ wait
+ echo "Done $i"
+ i=0
+done
+
+# Cobalt job ends when this script exits
+exit 0
+
Property changes on: SwiftApps/subjobs/subjob.sh
___________________________________________________________________
Added: svn:executable
+ *
More information about the Swift-commit
mailing list