Skip to content

Commit

Permalink
Merge pull request #475 from antoniomtz/igt-benchmark-consolidate
Browse files Browse the repository at this point in the history
fix: Updating GPU utilization field for DGPU
  • Loading branch information
antoniomtz authored Jan 29, 2024
2 parents 8556b7d + b968c77 commit 4967b7e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions benchmark-scripts/consolidate_multiple_run_of_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ def extract_data(self, log_file_path):
print("parsing GPU usages")
#print("log file path: {}".format(log_file_path))
device = re.findall(r'\d+', os.path.basename(log_file_path))
# The correct field to calculate GPU utilization is [unknown]/0 on ARC
if device[0] == '0':
self._USAGE_PATTERN = "[unknown]/0"
elif device[0] == '1':
self._USAGE_PATTERN = "Render/3D/0"
#print("device number: {}".format(device))
gpu_device_usage = {}
eu_total = 0
Expand Down

0 comments on commit 4967b7e

Please sign in to comment.