Add support for SR-IOV GPU stats (#15796)

* Add option to treat GPU as SRIOV in order for stats to work correctly

* Add to intel docs

* fix tests
This commit is contained in:
Nicolas Mowen
2025-01-03 09:43:44 -06:00
committed by Blake Blackshear
parent 6a83f40135
commit 458ca4a983
6 changed files with 25 additions and 7 deletions

View File

@@ -38,7 +38,7 @@ class TestGpuStats(unittest.TestCase):
process.returncode = 124
process.stdout = self.intel_results
sp.return_value = process
intel_stats = get_intel_gpu_stats()
intel_stats = get_intel_gpu_stats(False)
print(f"the intel stats are {intel_stats}")
assert intel_stats == {
"gpu": "1.13%",