[Misc] Show AMD GPU topology in collect_env.py (#8649)

This commit is contained in:
Cyrus Leung 2024-09-21 04:52:19 +08:00 committed by GitHub
parent b28298f2f4
commit 035fa895ec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -285,9 +285,14 @@ def summarize_vllm_build_flags():
def get_gpu_topo(run_lambda):
output = None
if get_platform() == 'linux':
return run_and_read_all(run_lambda, 'nvidia-smi topo -m')
return None
output = run_and_read_all(run_lambda, 'nvidia-smi topo -m')
if output is None:
output = run_and_read_all(run_lambda, 'rocm-smi --showtopo')
return output
# example outputs of CPU infos