MCPcopy Create free account
hub / github.com/PaddlePaddle/FastDeploy / get_nvidia_driver_version

Function get_nvidia_driver_version

fastdeploy/collect_env.py:192–197  ·  view source on GitHub ↗
(run_lambda)

Source from the content-addressed store, hash-verified

190
191
192def get_nvidia_driver_version(run_lambda):
193 if get_platform() == "darwin":
194 cmd = "kextstat | grep -i cuda"
195 return run_and_parse_first_match(run_lambda, cmd, r"com[.]nvidia[.]CUDA [(](.*?)[)]")
196 smi = get_nvidia_smi()
197 return run_and_parse_first_match(run_lambda, smi, r"Driver Version: (.*?) ")
198
199
200def get_gpu_info(run_lambda):

Callers 1

get_env_infoFunction · 0.85

Calls 3

get_platformFunction · 0.85
get_nvidia_smiFunction · 0.85

Tested by

no test coverage detected