mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-14 23:25:25 +03:00
Fix path of selected GPU
This commit is contained in:
parent
15fa55c223
commit
269f534210
@ -32,7 +32,7 @@ class LibvaGpuSelector:
|
||||
devices = list(filter(lambda d: d.startswith("render"), os.listdir("/dev/dri")))
|
||||
|
||||
if len(devices) < 2:
|
||||
self._selected_gpu = devices[0]
|
||||
self._selected_gpu = f"/dev/dri/{devices[0]}"
|
||||
return self._selected_gpu
|
||||
|
||||
for device in devices:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user