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 21:54:06 -05:00 committed by GitHub
parent d3d05fa397
commit 7612c3ece0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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,