Skip to content

Commit

Permalink
take into account that nvidia-smi command may be available, but fail …
Browse files Browse the repository at this point in the history
…with 'No devices were found' if no GPUs are available in Slurm job
  • Loading branch information
boegel committed Oct 3, 2024
1 parent f823375 commit b04cc29
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion init/eessi_archdetect.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit b04cc29

Please sign in to comment.