Marvin offers as an extra resource the possibility of use GPU to run jobs. To do that first we need to have a program previously compiled with CUDA (nVidia GPU compilers):

 

At the moment, we have two computers mr-05-01 and mr-05-02 with 1 GPU each one. (NVIDIA® Quadro RTX™ 4000)

 

To ask for a GPU resource we have to add this flag to our job script:

 

#SBATCH --gres=gpu:<num-gpu>

Below we have a completed job script that asks for 1 GPU.

 

#!/bin/bash
#
#SBATCH -p normal # partition (queue)
#SBATCH -N 1 # number of nodes
#SBATCH -n 2 # number of cores
#SBATCH --gres=gpu:1
#SBATCH --mem 1000 # memory pool for all cores
#SBATCH -t 0-01:00 # time (D-HH:MM)
#SBATCH -o slurm.%N.%j.out # STDOUT
#SBATCH -e slurm.%N.%j.err # STDERR
#SBATCH --mail-type=END,FAIL # notifications for job done & fail
#SBATCH [email protected] # send-to address

module load CUDA

cd /homes/users/xyyyyy/gpu_burn-0.7
./gpu_burn 120