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:
jrhelbert
2025-05-14 20:54:06 -06:00
committed by GitHub
parent d3d05fa397
commit 7612c3ece0
+1 -1
View File
@@ -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,