mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-05-16 20:55:49 +08:00
[Misc] Improve error message for incorrect pynvml (#12809)
Signed-off-by: youkaichao <youkaichao@gmail.com>
This commit is contained in:
parent
449d1bce02
commit
0408efc6d0
@ -41,7 +41,11 @@ def cuda_platform_plugin() -> Optional[str]:
|
|||||||
is_cuda = True
|
is_cuda = True
|
||||||
finally:
|
finally:
|
||||||
pynvml.nvmlShutdown()
|
pynvml.nvmlShutdown()
|
||||||
except Exception:
|
except Exception as e:
|
||||||
|
if "nvml" not in e.__class__.__name__.lower():
|
||||||
|
# If the error is not related to NVML, re-raise it.
|
||||||
|
raise e
|
||||||
|
|
||||||
# CUDA is supported on Jetson, but NVML may not be.
|
# CUDA is supported on Jetson, but NVML may not be.
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user