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

Function get_gpu_topo

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

Source from the content-addressed store, hash-verified

299
300
301def get_gpu_topo(run_lambda):
302 output = None
303
304 if get_platform() == "linux":
305 output = run_and_read_all(run_lambda, "nvidia-smi topo -m")
306 if output is None:
307 output = run_and_read_all(run_lambda, "rocm-smi --showtopo")
308
309 return output
310
311
312# example outputs of CPU infos

Callers 1

get_env_infoFunction · 0.85

Calls 2

get_platformFunction · 0.85
run_and_read_allFunction · 0.85

Tested by

no test coverage detected