dev: fixed an issues with CMP170 #6

Merged
clore merged 16 commits from dev into main 2025-10-15 19:13:45 +00:00
1 changed files with 3 additions and 1 deletions
Showing only changes of commit 9012bc2b2a - Show all commits

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)