dev: more debug

This commit is contained in:
empresa 2025-10-16 00:37:28 +07:00
parent 351bc269d1
commit 9012bc2b2a
1 changed files with 3 additions and 1 deletions

View File

@ -312,10 +312,12 @@ def get_gpu_info():
if bool(re.match(r'^[0-9]+$', parts[0])):
gpu_name = parts[1]
print("parts")
print(parts)
print("p1" + gpu_name)
if gpu_name == "NVIDIA Graphics Device" and parts[5] in GPU_ID_TO_NAME:
gpu_name = GPU_ID_TO_NAME[parts[5]]
print("p1" + gpu_name)
print("p2" + gpu_name)
gpu_str = f"{len(lines)-1}x {gpu_name.strip()}"
print(gpu_str)