| 8 |
|
|
| 9 |
if test $# = 0 |
if test $# = 0 |
| 10 |
then |
then |
| 11 |
TEST_LIST='ifcMPI pgiMPI pgiAdm' |
TEST_LIST='ifcMPI pgiMPI pgiAdm pgiMth' |
| 12 |
else |
else |
| 13 |
TEST_LIST=$* |
TEST_LIST=$* |
| 14 |
fi |
fi |
| 18 |
#QSTAT="qstat -u $USER" |
#QSTAT="qstat -u $USER" |
| 19 |
#dNam=$headNode |
#dNam=$headNode |
| 20 |
QSUB="/usr/bin/sbatch" |
QSUB="/usr/bin/sbatch" |
|
#QSTAT="/usr/bin/qstat -u $USER" |
|
| 21 |
QLIST="/usr/bin/squeue -u $USER" |
QLIST="/usr/bin/squeue -u $USER" |
| 22 |
dNam='svante' |
dNam='svante' |
| 23 |
HERE="$HOME/test_${dNam}" |
HERE="$HOME/test_${dNam}" |
| 143 |
for i in $JOB_LIST |
for i in $JOB_LIST |
| 144 |
do |
do |
| 145 |
case $i in |
case $i in |
|
'ifcMPI') sfx='ifc_mpi' ;; |
|
|
'pgiMPI') sfx='pgi_mpi' ;; |
|
| 146 |
'pgiAdm') sfx='pgi_adm' ;; |
'pgiAdm') sfx='pgi_adm' ;; |
| 147 |
*) sfx=${i}'_mpi' ;; |
'pgiMth') sfx='pgi_mth' ;; |
| 148 |
|
*) sfx=`echo ${i} | sed 's/MPI$/_mpi/'` ;; |
| 149 |
esac |
esac |
| 150 |
BATCH_SCRIPT="test_svante_$sfx" |
BATCH_SCRIPT="test_svante_$sfx" |
| 151 |
if test -f $SUB_DIR/$BATCH_SCRIPT ; then |
if test -f $SUB_DIR/$BATCH_SCRIPT ; then |
| 152 |
#- job name ( $JOB ) & output-file name ( $JOB.std??? ) must match |
#- job name ( $JOB ) & output-file name ( $JOB.std??? ) must match |
| 153 |
# definition within $BATCH_SCRIPT slurm script |
# definition within $BATCH_SCRIPT slurm script |
| 154 |
JOB="tst_"$i |
JOB="${i}_tst" |
| 155 |
sJob=`printf "%8.8s" $JOB` #- squeue truncate name to only 1rst 8c |
sJob=`printf "%8.8s" $JOB` #- squeue truncate name to only 1rst 8c |
| 156 |
#job_exist=`$QSTAT | grep $JOB | wc -l` |
#job_exist=`$QSTAT | grep $JOB | wc -l` |
| 157 |
job_exist=`$QLIST | grep $sJob | wc -l` |
job_exist=`$QLIST | grep $sJob | wc -l` |