cc_staff
150
edits
mNo edit summary |
mNo edit summary |
||
Line 317: | Line 317: | ||
<li><p>Niagara uses SLURM as its job scheduler.</p></li> | <li><p>Niagara uses SLURM as its job scheduler.</p></li> | ||
<li><p>You submit jobs from a login node by passing a script to the sbatch command:</p> | <li><p>You submit jobs from a login node by passing a script to the sbatch command:</p> | ||
<source lang="bash">nia-login07: | <source lang="bash">nia-login07:scratch$ sbatch jobscript.sh</source></li> | ||
<li><p>This puts the job in the queue. It will run on the compute nodes in due course.</p></li> | <li><p>This puts the job in the queue. It will run on the compute nodes in due course.</p></li> | ||
<li><p>In most cases, you will want to submit from your $SCRATCH directory, so that the output of your compute job can be written out (as mentioned above, $HOME is read-only on the compute nodes).</p> | |||
<li><p>Jobs will run under their group's RRG allocation, or, if the group has none, under a RAS allocation (previously called `default' allocation).</p></li></ul> | <li><p>Jobs will run under their group's RRG allocation, or, if the group has none, under a RAS allocation (previously called `default' allocation).</p></li></ul> | ||
Line 410: | Line 411: | ||
<translate> | <translate> | ||
<!--T:91--> | <!--T:91--> | ||
Submit this script with the command: | Submit this script from your scratch directory with the command: | ||
<source lang="bash">nia-login07: | <source lang="bash">nia-login07:scratch$ sbatch mpi_job.sh</source> | ||
<ul> | <ul> | ||
Line 451: | Line 452: | ||
<translate> | <translate> | ||
<!--T:89--> | <!--T:89--> | ||
Submit this script with the command: | Submit this script from your scratch directory with the command: | ||
<source lang="bash">nia-login07: | <source lang="bash">nia-login07:scratch$ sbatch openmp_job.sh</source> | ||
* First line indicates that this is a bash script. | * First line indicates that this is a bash script. | ||
* Lines starting with <code>#SBATCH</code> go to SLURM. | * Lines starting with <code>#SBATCH</code> go to SLURM. |