...
The script use parallel
in line 25 to run task.sh
100 times with a parameter taken from the range {1..100
}. Because each task is started with srun
a separate job step is created and the options used with srun
(see line 12) the task is using only a single core. This simple example can be adjusted as needed by modifying the script task.sh
and the job script parallel_job.sh
. You can adjust the requested resources, for example, you can use more than a single node. Note that depending on the number of tasks you may have to split your job into several to keep the total time needed short enough. Once the setup is done, you can simply submit the job:
Codeblock |
---|
$ sbatch parallel_job.sh |
.