mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-07-26 13:47:03 +02:00
Remove hardcoded usage of /dev/dri/card0 in call to intel_gpu_top (#18236)
Not everyone is using /dev/dri/card0. I recommend switching to these more generic parameters for intel_gpu_top_command (line 307 in the 0.16.0-beta2 version of services.py): intel_gpu_top_command += ["-d", "sriov"]
This commit is contained in:
parent
d3d05fa397
commit
7612c3ece0
@ -304,7 +304,7 @@ def get_intel_gpu_stats(sriov: bool) -> Optional[dict[str, str]]:
|
||||
]
|
||||
|
||||
if sriov:
|
||||
intel_gpu_top_command += ["-d", "drm:/dev/dri/card0"]
|
||||
intel_gpu_top_command += ["-d", "sriov"]
|
||||
|
||||
p = sp.run(
|
||||
intel_gpu_top_command,
|
||||
|
Loading…
Reference in New Issue
Block a user