Example batch jobs for the gpu partition
Contents
Single-GPU job
line no. |
/sw/batch/examples/gpu-partition/single-gpu-job.sh |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
#!/bin/bash #SBATCH --account=WorkingGroupName_gpu #SBATCH --partition=gpu #SBATCH --gpus=1 #SBATCH --time=00:05:00 #SBATCH --export=NONE
source /sw/batch/init.sh
module load cuda/12.5.1
$CUDA_HOME/extras/demo_suite/busGrind
exit
|
---|
Multi-GPU job
line no. |
/sw/batch/examples/gpu-partition/multi-gpu-job.sh |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
#!/bin/bash #SBATCH --account=WorkingGroupName_gpu #SBATCH --partition=gpu #SBATCH --gpus=2 #SBATCH --cpus-per-gpu=8 # allowed values: 1..8 #SBATCH --time=00:05:00 #SBATCH --export=NONE
source /sw/batch/init.sh
module load cuda/12.5.1
$CUDA_HOME/extras/demo_suite/busGrind
exit
|
---|