Re: [slurm-users] scancel gpu jobs when gpu is not requested

2021-08-26 Thread Renfro, Michael
@lists.schedmd.com Subject: [slurm-users] scancel gpu jobs when gpu is not requested External Email Warning This email originated from outside the university. Please use caution when opening attachments, clicking links, or responding to requests. Hello, I have

[slurm-users] scancel gpu jobs when gpu is not requested

2021-08-24 Thread Ratnasamy, Fritz
Hello, I have written a script in my prolog.sh that cancels any slurm job if the parameter gres=gpu is not present. This is the script i added to my prolog.sh if [ $SLURM_JOB_PARTITION == "gpu" ]; then if [ ! -z "${GPU_DEVICE_ORDINAL}" ]; then echo "GPU ID used is ID: $GPU