@@ -1146,6 +1146,7 @@ def show_new_gui():
1146
1146
CUDevices = ["1" ,"2" ,"3" ,"4" ,"All" ]
1147
1147
CLDevicesNames = ["" ,"" ,"" ,"" ]
1148
1148
CUDevicesNames = ["" ,"" ,"" ,"" ,"" ]
1149
+ VKDevicesNames = ["" ,"" ,"" ,"" ]
1149
1150
MaxMemory = [0 ]
1150
1151
1151
1152
tabcontent = {}
@@ -1360,6 +1361,17 @@ def auto_gpu_heuristics():
1360
1361
except Exception as e :
1361
1362
pass
1362
1363
1364
+ try : # Get Vulkan names
1365
+ output = run (['vulkaninfo' ,'--summary' ], capture_output = True , text = True , check = True , encoding = 'utf-8' ).stdout
1366
+ devicelist = [line .split ("=" )[1 ].strip () for line in output .splitlines () if "deviceName" in line ]
1367
+ idx = 0
1368
+ for dname in devicelist :
1369
+ if idx < len (VKDevicesNames ):
1370
+ VKDevicesNames [idx ] = dname
1371
+ idx += 1
1372
+ except Exception as e :
1373
+ pass
1374
+
1363
1375
for idx in range (0 ,4 ):
1364
1376
if (len (FetchedCUdevices )> idx ):
1365
1377
CUDevicesNames [idx ] = FetchedCUdevices [idx ]
@@ -1461,8 +1473,8 @@ def changed_gpu_choice_var(*args):
1461
1473
s = int (gpu_choice_var .get ())- 1
1462
1474
v = runopts_var .get ()
1463
1475
if v == "Use Vulkan" :
1464
- quick_gpuname_label .configure (text = "" )
1465
- gpuname_label .configure (text = "" )
1476
+ quick_gpuname_label .configure (text = VKDevicesNames [ s ] )
1477
+ gpuname_label .configure (text = VKDevicesNames [ s ] )
1466
1478
elif v == "Use CLBlast" or v == "CLBlast NoAVX2 (Old CPU)" :
1467
1479
quick_gpuname_label .configure (text = CLDevicesNames [s ])
1468
1480
gpuname_label .configure (text = CLDevicesNames [s ])
0 commit comments