Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
abstract:caviness:runjobs:schedule_jobs [2024-05-23 11:32] – [Memory] anita | abstract:caviness:runjobs:schedule_jobs [2024-09-25 14:10] (current) – [Array Jobs] anita | ||
---|---|---|---|
Line 668: | Line 668: | ||
- | ==== Array jobs ==== | + | ===== Array Jobs ===== |
An array job essentially runs the same job by generating a new repeated task many times. Each time, the environment variable **SLURM_ARRAY_TASK_ID** is set to a unique value and its value provides input to the job submission script. | An array job essentially runs the same job by generating a new repeated task many times. Each time, the environment variable **SLURM_ARRAY_TASK_ID** is set to a unique value and its value provides input to the job submission script. | ||
Line 699: | Line 699: | ||
%%--%%array=1, | %%--%%array=1, | ||
</ | </ | ||
+ | |||
+ | <note important> | ||
+ | </ | ||
For more details and information see [[abstract: | For more details and information see [[abstract: | ||
- | ==== Chaining | + | ===== Chaining |
If you have a multiple jobs where you want to automatically run other job(s) after the execution of another job, then you can use chaining. When you chain jobs, remember to check the status of the other job to determine if it successfully completed. This will prevent the system from flooding the scheduler with failed jobs. Here is a simple chaining example with three job scripts '' | If you have a multiple jobs where you want to automatically run other job(s) after the execution of another job, then you can use chaining. When you chain jobs, remember to check the status of the other job to determine if it successfully completed. This will prevent the system from flooding the scheduler with failed jobs. Here is a simple chaining example with three job scripts '' | ||
Line 943: | Line 946: | ||
Four sub-tasks are executed, numbered from 1 through 4. The starting index must be greater than zero, and the ending index must be greater than or equal to the starting index. | Four sub-tasks are executed, numbered from 1 through 4. The starting index must be greater than zero, and the ending index must be greater than or equal to the starting index. | ||
- | <note important> | + | <note important> |
</ | </ | ||
==== Partitioning Job Data ==== | ==== Partitioning Job Data ==== |