dev: CMP170 debug

This commit is contained in:
empresa 2025-10-16 00:32:53 +07:00
parent bbd4c669a2
commit 351bc269d1
1 changed files with 4 additions and 0 deletions

View File

@ -291,6 +291,8 @@ def get_gpu_info():
"mem_used": parts[12]
}
print(xl_gpu_info)
try:
pci_query = parts[2][parts[2].find(':')+1:]
for index, valid_pci_dev in enumerate(valid_pci_dev_list):
@ -320,6 +322,8 @@ def get_gpu_info():
gpu_mem = round(int(filter_non_numeric(parts[4]).strip())/1024, 2)
except Exception as e:
nvml_err=True
print("err2")
print(e)
pass
else:
nvml_err=True