Bureaucrats, cc_docs_admin, cc_staff
2,879
edits
(simplified directories example) |
|||
Line 15: | Line 15: | ||
Submitted batch job 54321 | Submitted batch job 54321 | ||
Job 54321 will be scheduled as 10 independent tasks which may start at different times on different hosts. | Job 54321 will be scheduled as 10 independent tasks which may start at different times on different hosts. Each task has a different value of an environment variable $SLURM_ARRAY_TASK_ID. The script can reference $SLURM_ARRAY_TASK_ID to select an input file, for example, or to set a command-line argument for the application code: | ||
my_app <input.$SLURM_ARRAY_TASK_ID | my_app <input.$SLURM_ARRAY_TASK_ID |