From b04cc298e0e593a85e838eb25696dc1ab8962bf9 Mon Sep 17 00:00:00 2001 From: Kenneth Hoste Date: Thu, 3 Oct 2024 19:54:59 +0200 Subject: [PATCH] take into account that nvidia-smi command may be available, but fail with 'No devices were found' if no GPUs are available in Slurm job --- init/eessi_archdetect.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/init/eessi_archdetect.sh b/init/eessi_archdetect.sh index 87d47364f7..2b1534ce62 100755 --- a/init/eessi_archdetect.sh +++ b/init/eessi_archdetect.sh @@ -178,7 +178,8 @@ accelpath() { echo $res rm -f $nvidia_smi_out else - log "ERROR" "accelpath: nvidia-smi command failed, see output in $nvidia_smi_out" + log "DEBUG" "accelpath: nvidia-smi command failed, see output in $nvidia_smi_out" + exit 3 fi else log "DEBUG" "accelpath: nvidia-smi command not found"