diff --git a/job_scripts/frontier/chainslurm.sh b/job_scripts/frontier/chainslurm.sh deleted file mode 100755 index 5dbcf87..0000000 --- a/job_scripts/frontier/chainslurm.sh +++ /dev/null @@ -1,56 +0,0 @@ -#!/bin/sh -f - -if [ ! "$1" ]; then - echo "usage: chainslurm.sh jobid number script" - echo " set jobid -1 for no initial dependency" - exit -1 -fi - -if [ ! "$2" ]; then - echo "usage: chainslurm.sh jobid number script" - echo " set jobid -1 for no initial dependency" - exit -1 -fi - -if [ ! "$3" ]; then - echo "usage: chainslurm.sh jobid number script" - echo " set jobid -1 for no initial dependency" - exit -1 -fi - - -oldjob=$1 -numjobs=$2 -script=$3 - -if [ $numjobs -gt "20" ]; then - echo "too many jobs requested" - exit -1 -fi - -firstcount=1 - -if [ $oldjob -eq "-1" ] -then - echo chaining $numjobs jobs - - echo starting job 1 with no dependency - aout=`sbatch --parsable ${script}` - echo " " jobid: $aout - echo " " - oldjob=$aout - firstcount=2 - sleep 3 -else - echo chaining $numjobs jobs starting with $oldjob -fi - -for count in `seq $firstcount 1 $numjobs` -do - echo starting job $count to depend on $oldjob - aout=`sbatch --parsable -d afterany:${oldjob} ${script}` - echo " " jobid: $aout - echo " " - oldjob=$aout - sleep 3 -done diff --git a/job_scripts/cori-haswell/chainslurm.sh b/job_scripts/slurm/chainslurm.sh similarity index 100% rename from job_scripts/cori-haswell/chainslurm.sh rename to job_scripts/slurm/chainslurm.sh