Running jobs: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 38: Line 38:
<!--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.
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]. Our 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 <i>options</i>) 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]. Our 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.


<!--T:59-->
<!--T:59-->
Line 57: Line 57:


<!--T:163-->
<!--T:163-->
Adding to this confusion, Slurm interprets K, M, G, etc., as [https://en.wikipedia.org/wiki/Binary_prefix binary prefixes], so <code>--mem=125G</code> is equivalent to <code>--mem=128000M</code>.  See the <i>Available memory</i> column in the "Node characteristics" table for each GP cluster for the Slurm specification of the maximum memory you can request on each node: [[Béluga/en#Node_characteristics|Béluga]], [[Cedar#Node_characteristics|Cedar]], [[Graham#Node_characteristics|Graham]], [[Narval/en#Node_characteristics|Narval]].
Adding to this confusion, Slurm interprets K, M, G, etc., as [https://en.wikipedia.org/wiki/Binary_prefix binary prefixes], so <code>--mem=125G</code> is equivalent to <code>--mem=128000M</code>.  See the <i>Available memory</i> column in the <i>Node characteristics</i> table for each GP cluster for the Slurm specification of the maximum memory you can request on each node: [[Béluga/en#Node_characteristics|Béluga]], [[Cedar#Node_characteristics|Cedar]], [[Graham#Node_characteristics|Graham]], [[Narval/en#Node_characteristics|Narval]].


==Use <code>squeue</code> or <code>sq</code> to list jobs== <!--T:60-->
==Use <code>squeue</code> or <code>sq</code> to list jobs== <!--T:60-->
Line 120: Line 120:
To find out which account name corresponds
To find out which account name corresponds
to a given Resource Allocation Project, log in to [https://ccdb.computecanada.ca CCDB]  
to a given Resource Allocation Project, log in to [https://ccdb.computecanada.ca CCDB]  
and click on "My Account -> Account Details". You will see a list of all the projects  
and click on <i>My Account -> Account Details</i>. You will see a list of all the projects  
you are a member of. The string you should use with the <code>--account</code> for  
you are a member of. The string you should use with the <code>--account</code> for  
a given project is under the column <i>Group Name</i>. Note that a Resource  
a given project is under the column <i>Group Name</i>. Note that a Resource  
rsnt_translations
56,420

edits

Navigation menu