8 |
|
|
9 |
if test $# = 0 |
if test $# = 0 |
10 |
then |
then |
11 |
TEST_LIST='o64Adm gfoTlm gfoMp2 ifort' |
TEST_LIST='o64Adm gfoTlm ifcMp2 ifcMpi' |
12 |
#if test "x$dInWeek" = xSun ; then TEST_LIST="$TEST_LIST iad ifc oad" ; fi |
#if test "x$dInWeek" = xSun ; then TEST_LIST="$TEST_LIST iad ifc oad" ; fi |
13 |
else |
else |
14 |
TEST_LIST=$* |
TEST_LIST=$* |
15 |
fi |
fi |
16 |
|
|
17 |
QSUB="/usr/bin/sbatch" |
QSUB="/usr/bin/sbatch" |
18 |
QSTAT="/usr/bin/qstat" |
#QSTAT="/usr/bin/qstat -u $USER" |
19 |
|
QLIST="/usr/bin/squeue -u $USER" |
20 |
dNam='engaging' |
dNam='engaging' |
21 |
HERE="$HOME/test_$dNam" |
HERE="$HOME/test_$dNam" |
22 |
TST_DIR="/pool001/jm_c/test_$dNam" |
TST_DIR="/pool001/jm_c/test_$dNam" |
57 |
case $i in |
case $i in |
58 |
'o64Adm') sfx='op64_adm' ;; |
'o64Adm') sfx='op64_adm' ;; |
59 |
'gfoTlm') sfx='gfo_tlm' ;; |
'gfoTlm') sfx='gfo_tlm' ;; |
60 |
'gfoMp2') sfx='gfo_mp2' ;; |
*) sfx=`echo ${i} | sed '/Mp.$/s/Mp/_mp/'` ;; |
|
*) sfx=${i}'_mpi' ;; |
|
61 |
esac |
esac |
62 |
BATCH_SCRIPT="test_engag_$sfx" |
BATCH_SCRIPT="test_engag_$sfx" |
63 |
if test -f $SUB_DIR/$BATCH_SCRIPT ; then |
if test -f $SUB_DIR/$BATCH_SCRIPT ; then |
64 |
JOB="tst_"$i |
#- job name ( $JOB ) & output-file name ( $JOB.std??? ) must match |
65 |
job_exist=`$QSTAT -a | grep $USER | grep $JOB | wc -l` |
# definition within $BATCH_SCRIPT slurm script |
66 |
|
JOB="${i}_tst" |
67 |
|
sJob=`printf "%8.8s" $JOB` #- squeue truncate name to only 1rst 8c |
68 |
|
#job_exist=`$QSTAT | grep $JOB | wc -l` |
69 |
|
job_exist=`$QLIST | grep $sJob | wc -l` |
70 |
if test "x_$job_exist" = x_0 ; then |
if test "x_$job_exist" = x_0 ; then |
71 |
#-- move previous output file |
#-- move previous output file |
72 |
outList=`ls $JOB.std??? 2> /dev/null` |
outList=`ls $JOB.std??? 2> /dev/null` |