dev: fixed an issues with CMP170 #6
|
@ -312,10 +312,12 @@ def get_gpu_info():
|
||||||
if bool(re.match(r'^[0-9]+$', parts[0])):
|
if bool(re.match(r'^[0-9]+$', parts[0])):
|
||||||
|
|
||||||
gpu_name = parts[1]
|
gpu_name = parts[1]
|
||||||
|
print("parts")
|
||||||
|
print(parts)
|
||||||
print("p1" + gpu_name)
|
print("p1" + gpu_name)
|
||||||
if gpu_name == "NVIDIA Graphics Device" and parts[5] in GPU_ID_TO_NAME:
|
if gpu_name == "NVIDIA Graphics Device" and parts[5] in GPU_ID_TO_NAME:
|
||||||
gpu_name = GPU_ID_TO_NAME[parts[5]]
|
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()}"
|
gpu_str = f"{len(lines)-1}x {gpu_name.strip()}"
|
||||||
print(gpu_str)
|
print(gpu_str)
|
||||||
|
|
Loading…
Reference in New Issue