User Tools

Site Tools


slurm_basics

====== Differences ====== This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
slurm_basics [2018/12/06 18:32]
xteng
slurm_basics [2019/02/12 15:06]
xteng
Line 22: Line 22:
 * Script 1 * Script 1
 The following snippet runs a program asking for four (4) tasks. The following snippet runs a program asking for four (4) tasks.
 +http://​osirim.irit.fr/​site/​en/​articles/​sbatch-options
 <​code>​ <​code>​
 #!/bin/bash #!/bin/bash
Line 82: Line 83:
 #SBATCH --nodes=1 #request one node #SBATCH --nodes=1 #request one node
  
-#SBATCH --cpus-per-task= #ask for cpus+#SBATCH --cpus-per-task= #e .g. ask for cpus
  
 #SBATCH --time=02:​00:​00 #ask that the job be allowed to run for 2 hours. #SBATCH --time=02:​00:​00 #ask that the job be allowed to run for 2 hours.
  
-#SBATCH --error=job.%J.err # tell it to store the output console text to a file+#SBATCH --error=/​PATH/<​NAME>​.%J.err # tell it to store the output console text to a file
  
-#SBATCH --output=job.%J.out #tell it to store the error messages to a file+#SBATCH --output=/​PATH/<​NAME>​.%J.out #tell it to store the error messages to a file
  
 module load R #load the most recent version of R available module load R #load the most recent version of R available
slurm_basics.txt ยท Last modified: 2019/02/12 15:08 by xteng