| ... | @@ -38,7 +38,7 @@ $ srun -N1 -n1 -c1 -t1 --mem=100mb sleep 20 & |
... | @@ -38,7 +38,7 @@ $ srun -N1 -n1 -c1 -t1 --mem=100mb sleep 20 & |
|
|
*sbatch* submits a batch script to Slurm. The batch script may be given to sbatch through a file name on the command line, or if no file name is specified, sbatch will read in a script from standard input. The batch script may contain options preceded with "#SBATCH" before any executable commands in the script. sbatch will stop processing further #SBATCH directives once the first non-comment non-whitespace line has been reached in the script.
|
|
*sbatch* submits a batch script to Slurm. The batch script may be given to sbatch through a file name on the command line, or if no file name is specified, sbatch will read in a script from standard input. The batch script may contain options preceded with "#SBATCH" before any executable commands in the script. sbatch will stop processing further #SBATCH directives once the first non-comment non-whitespace line has been reached in the script.
|
|
|
|
|
|
|
|
**Caution:**
|
|
**Caution:**
|
|
|
The *sbatch* will run one single job separated in several tasks. Meaning that your tasks will be executed if and only if there is enough resources available to run all the tasks simultaneously. A better practice to run several independant tasks in parallel is to [use job arrays](Slurm job array)
|
|
The *sbatch* command will run one single job separated in several tasks. Meaning that your tasks will be executed if and only if there is enough resources available to run all the tasks simultaneously. A better practice to run several independant tasks in parallel is to [use job arrays](Slurm job array)
|
|
|
|
|
|
|
|
```
|
|
```
|
|
|
sbatch myscript.sh &
|
|
sbatch myscript.sh &
|
| ... | |
... | |
| ... | | ... | |