users:slurm
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
users:slurm [2016/04/01 15:28] – [Examples] ecalore | users:slurm [2016/11/07 14:56] (current) – [Running 16 MPI job using 16 GPUs on one node] ecalore | ||
---|---|---|---|
Line 68: | Line 68: | ||
#SBATCH --error=my_job_name-%j.err | #SBATCH --error=my_job_name-%j.err | ||
#SBATCH --output=my_job_name-%j.out | #SBATCH --output=my_job_name-%j.out | ||
- | #SBATCH --ntasks 4 | + | #SBATCH --ntasks=4 |
#SBATCH --ntasks-per-node=4 | #SBATCH --ntasks-per-node=4 | ||
Line 82: | Line 82: | ||
<code bash> | <code bash> | ||
#!/bin/bash | #!/bin/bash | ||
- | #SBATCH --ntasks 32 | + | #SBATCH --ntasks=32 |
#SBATCH --ntasks-per-node=16 | #SBATCH --ntasks-per-node=16 | ||
Line 95: | Line 95: | ||
We also load the cuda and openmpi [[users: | We also load the cuda and openmpi [[users: | ||
- | Remember that SLURM will decide which GPUs to reserve for you, thus is your program duty to select the correct device IDs, otherwise GPUs could not be accessed. The list of the reserved device IDs is in the //CUDA_VISIBLE_DEVICES// environment variable. | + | Remember that SLURM will decide which GPUs to reserve for you, thus is your program duty to select the correct device IDs, otherwise GPUs could not be accessed. The list of the reserved device IDs is in the [[https://devblogs.nvidia.com/parallelforall/cuda-pro-tip-control-gpu-visibility-cuda_visible_devices/ |
<code bash> | <code bash> | ||
Line 101: | Line 101: | ||
#SBATCH --error=gpu-test-%j.err | #SBATCH --error=gpu-test-%j.err | ||
#SBATCH --output=gpu-test-%j.out | #SBATCH --output=gpu-test-%j.out | ||
- | #SBATCH --ntasks 16 | + | #SBATCH --ntasks=16 |
#SBATCH --ntasks-per-node=16 | #SBATCH --ntasks-per-node=16 | ||
#SBATCH --partition=longrun | #SBATCH --partition=longrun | ||
Line 109: | Line 109: | ||
module load openmpi | module load openmpi | ||
- | srun ./ | + | srun ./ |
</ | </ | ||
+ | |||
+ | ===== Additional Examples ===== | ||
+ | |||
+ | You can find additional generic examples here: | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | [[http:// | ||
===== Meaning of the most common options ===== | ===== Meaning of the most common options ===== |
users/slurm.1459517295.txt.gz · Last modified: 2016/04/01 15:28 by ecalore