This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
sbatch [2021/05/27 13:17] root |
sbatch [2021/10/22 12:05] (current) root |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== sbatch ====== | ====== sbatch ====== | ||
- | **sbatch** submits a script to be executed to the slurm controller and returns immediately. The script may be queued for running later if there are currently no resources (cores) available to run it. The script is " | + | **sbatch** submits a script to be executed to the slurm controller and returns immediately. The script may be queued for running later if there are currently no resources (cores |
The working directory for the script will be set to the current working directory when you submit the job. | The working directory for the script will be set to the current working directory when you submit the job. | ||
Line 50: | Line 50: | ||
sbatch -N4 ex1.bash one two | sbatch -N4 ex1.bash one two | ||
+ | |||
+ | ** Unless you intend to use srun from within your script, the -N option is probably not what you want. ** | ||
The " | The " |