mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2025-09-10 17:14:36 +00:00
1435: add timeout for vulkaninfo (#1436)
* Fix the Colab PR * 1435: add timeout for vulkaninfo There's a bug in vulkaninfo where it can hang, and this will prevent koboldcpp from starting. This adds a 5 second timeout * restoring colab.ipynb * Formatting --------- Co-authored-by: henk717 <henk@henk.tech>
This commit is contained in:
parent
27bd7b95f5
commit
e31da5861a
1 changed files with 2 additions and 1 deletions
|
@ -991,7 +991,8 @@ def fetch_gpu_properties(testCL,testCU,testVK):
|
|||
|
||||
if testVK:
|
||||
try: # Get Vulkan names
|
||||
output = subprocess.run(['vulkaninfo','--summary'], capture_output=True, text=True, check=True, encoding='utf-8').stdout
|
||||
output = subprocess.run(['vulkaninfo','--summary'], capture_output=True, text=True, check=True,
|
||||
encoding='utf-8', timeout=5).stdout
|
||||
devicelist = [line.split("=")[1].strip() for line in output.splitlines() if "deviceName" in line]
|
||||
devicetypes = [line.split("=")[1].strip() for line in output.splitlines() if "deviceType" in line]
|
||||
idx = 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue