This commit is contained in:
Nick Mowen 2023-02-06 14:39:52 -07:00
parent f4abe67309
commit 3c7b5e5f3c

View File

@ -26,7 +26,7 @@ def get_gpu_device() -> str:
if GPU_DEVICE_PARAM: if GPU_DEVICE_PARAM:
return GPU_DEVICE_PARAM return GPU_DEVICE_PARAM
devices = filter(lambda d: d.startswith("render"), os.listdir("/dev/dri")) devices = list(filter(lambda d: d.startswith("render"), os.listdir("/dev/dri")))
if len(devices) < 2: if len(devices) < 2:
GPU_DEVICE_PARAM = "renderD128" GPU_DEVICE_PARAM = "renderD128"