@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
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