cc_staff
153
edits
(Marked this version for translation) |
(Clarify what script is doing.) |
||
Line 30: | Line 30: | ||
|contents= | |contents= | ||
#!/bin/bash | #!/bin/bash | ||
#SBATCH --time=00: | #SBATCH --time=00:15:00 | ||
#SBATCH --account=def-someuser | #SBATCH --account=def-someuser | ||
echo 'Hello, world!' | echo 'Hello, world!' | ||
Line 37: | Line 37: | ||
<!--T:58--> | <!--T:58--> | ||
On general-purpose (GP) clusters this job reserves 1 core and 256MB of memory for 15 minutes. On [[Niagara]] this job reserves the whole node with all its memory. | |||
Directives (or "options") in the job script are prefixed with <code>#SBATCH</code> and must precede all executable commands. All available directives are described on the [https://slurm.schedmd.com/sbatch.html sbatch page]. Compute Canada policies require that you supply at least a time limit (<code>--time</code>) for each job. You may also need to supply an account name (<code>--account</code>). See [[#Accounts and projects|Accounts and projects]] below. | Directives (or "options") in the job script are prefixed with <code>#SBATCH</code> and must precede all executable commands. All available directives are described on the [https://slurm.schedmd.com/sbatch.html sbatch page]. Compute Canada policies require that you supply at least a time limit (<code>--time</code>) for each job. You may also need to supply an account name (<code>--account</code>). See [[#Accounts and projects|Accounts and projects]] below. | ||