Slurm Script Update.
The job array worked very well for the task I have at hand. Following is the code I used.
utdNodesAllRun.sh
#SBATCH -J utdNodesAll # Job name
#SBATCH -o utdNodesAll.%j.out # Name of stdout output file (%j expands to jobId)
#SBATCH -e utdNodesAll.%j.err # Error File Name
#SBATCH -N 1 # Total number of nodes requested
#SBATCH -n 16 # Total number of mpi tasks requested
#SBATCH --array=1-15 # Array ranks to run
#SBATCH -t 24:00:00 # Run time (hh:mm:ss) - 24 hours
ml load matlab
echo Running calibration scripts for UTD Node: "$SLURM_ARRAY_TASK_ID"
echo Running on host: `hostname`
matlab -nodesktop -nodisplay -nosplash -r "try utdNodesOptSolo2("$SLURM_ARRAY_TASK_ID"); catch; end; quit"
And its currently running on Europa
[lhw150030@europa calibration]$ squeue -u$USER | grep 249
249_1 normal utdNodes lhw15003 R 1:11:40 1 compute-1-1-1
249_2 normal utdNodes lhw15003 R 1:11:40 1 compute-1-1-3
249_4 normal utdNodes lhw15003 R 1:11:40 1 compute-1-1-8
249_5 normal utdNodes lhw15003 R 1:11:40 1 compute-1-1-9
249_6 normal utdNodes lhw15003 R 1:11:40 1 compute-1-1-11
249_7 normal utdNodes lhw15003 R 1:11:40 1 compute-1-1-15
249_8 normal utdNodes lhw15003 R 1:11:40 1 compute-1-1-18
249_10 normal utdNodes lhw15003 R 1:11:40 1 compute-1-1-20
249_11 normal utdNodes lhw15003 R 1:11:40 1 compute-1-1-21
249_12 normal utdNodes lhw15003 R 1:11:40 1 compute-1-1-22
249_13 normal utdNodes lhw15003 R 1:11:40 1 compute-1-1-23
249_14 normal utdNodes lhw15003 R 1:11:40 1 compute-1-1-24
249_15 normal utdNodes lhw15003 R 1:11:40 1 compute-1-1-25