File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -291,19 +291,19 @@ def get_all_gpu_memory():
291
291
try :
292
292
nvidia_memory = get_nvidia_gpu_memory (visible_devices )
293
293
gpu_memory .update (nvidia_memory )
294
- except FileNotFoundError :
294
+ except :
295
295
pass
296
296
# print("nvidia-smi not found. Skipping NVIDIA GPU check.")
297
297
298
298
try :
299
299
amd_memory = get_amd_gpu_memory ()
300
300
gpu_memory .update (amd_memory )
301
- except FileNotFoundError :
301
+ except :
302
302
pass
303
- # print("rocm-smi not found. Skipping AMD GPU check.") # TODO: remove warning on NVidia, test on AMD
303
+ # print("rocm-smi not found. Skipping AMD GPU check.") # TODO: test on AMD
304
304
305
305
assert gpu_memory , \
306
- "Unable to read available VRAM from nvidia-smi or rocm-smi"
306
+ "Unable to read available VRAM from either nvidia-smi or rocm-smi"
307
307
308
308
return gpu_memory
309
309
You can’t perform that action at this time.
0 commit comments