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 7 additions and 1 deletions
Showing only changes of commit 73b9bacbd8 - Show all commits

View File

@ -273,8 +273,14 @@ def get_gpu_info():
parts = [s.strip() for s in line.split(',')]
if len(parts)>12 and index>0:
gpu_name = parts[1]
print("gpu name 1")
print(gpu_name)
print("part 13")
print(parts[13])
if gpu_name == "NVIDIA Graphics Device" and parts[13] in GPU_ID_TO_NAME:
gpu_name = GPU_ID_TO_NAME[parts[13]]
print("gpu name 2")
print(gpu_name)
xl_gpu_info={
"id":index-1,