Skip to content

Commit 9836264

Browse files
committed
further improved GPU not available error message (formatting, sudo)
1 parent cb29aba commit 9836264

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

userdocker/subcommands/run.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,10 @@ def prepare_nvidia_docker_run(args):
125125
for g in nv_gpus:
126126
if g not in gpus_available:
127127
raise UserDockerException(
128-
'ERROR: GPU %d is currently not available!\n'
129-
'Use "userdocker ps --gpu-free" to find available GPUs.\n'
130-
'Use "userdocker ps --gpu-used" or "nvidia-smi" to see why '
131-
'this GPU might not be available.' % g
128+
'ERROR: GPU %d is currently not available!\nUse:\n'
129+
'"sudo userdocker ps --gpu-free" to find available GPUs.\n'
130+
'"sudo userdocker ps --gpu-used" or "nvidia-smi" to see '
131+
'status information.' % g
132132
)
133133
else:
134134
# NV_GPU wasn't set, use admin defaults, tell user

0 commit comments

Comments
 (0)