# Check Slurm environment if available
if os.environ['SLURM_GPUS_ON_NODE']:
ngpus_requested = int(os.environ['SLURM_GPUS_ON_NODE'])
if ngpus_requested > 1:
logging.fatal(f'No. of GPUs requested is > 1: {ngpus_requested}')
But, all that happens is a CRITICAL message and the script continues executing:
run_singularity.py
does this:But, all that happens is a
CRITICAL
message and the script continues executing: