====== Differences ====== This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
slurm_basics [2018/12/06 18:30] 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=8 #ask for 8 cpus | + | #SBATCH --cpus-per-task=2 #e .g. ask for 2 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 | ||
Line 131: | Line 132: | ||
salloc --time=01:00:00 --nodes=1 | salloc --time=01:00:00 --nodes=1 | ||
</code> | </code> | ||
+ | |||
+ | back to [[ace-gpu-1_slurm|ace-gpu-1 slurm]] |