...
How do I submit a Batch Job?
use the sbatch command , this primer needs to be elaborated:
Create a job submission script:
Code Block |
---|
#!/bin/bash
#SBATCH --job-name=test
#SBATCH --output=output-%j.txt
#SBATCH --error=output-%j.txt
#
#SBATCH --ntasks=1
#SBATCH --mem-per-cpu=100
#
#SBATCH --time=10:00
#
#SBATCH --gpu geforce_gtx_1080_ti:1
<commands here> |
Then
Code Block |
---|
module load slurm
sbatch script.sh |
How can I request GPUs?
Code Block |
---|
# request single gpu srun -A myaccount -p mypartition1[,mypartition2] -n 1 --gpus 1 --pty /bin/bash # request a gtx 1080 gpu srun -A myaccount -p mypartition1[,mypartition2] -n 1 --gpus geforce_gtx_1080_ti:1 --pty /bin/bash # request a gtx 2080 gpu srun -A myaccount -p mypartition1[,mypartition2] -n 1 --gpus geforce_rtx_2080_ti:1 --pty /bin/bash # request a v100 gpu srun -A myaccount -p mypartition1[,mypartition2] -n 1 --gpus v100:1 --pty /bin/bash |
...