Skip to content

Commit

Permalink
SWDEV-296922 : Incorrect rounding due to integer division in rocprofi…
Browse files Browse the repository at this point in the history
…ler metrics

Changed var_pattern in tblextr.py to include pattern like "name[0]"

Change-Id: Ibe1c512595cfbdcaca8fa5bddceb3f6a570caf43
  • Loading branch information
cyamder authored and lmoriche committed Sep 29, 2021
1 parent f9017cb commit ff43ca1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/tblextr.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ def parse_res(infile):
ts_pattern = re.compile(", time\((\d*),(\d*),(\d*),(\d*)\)")
# var pattern below matches a variable name and a variable value from a one
# line text in the format of for example "WRITE_SIZE (0.2500000000)" or
# "GRBM_GUI_ACTIVE (27867)"
var_pattern = re.compile("^\s*([a-zA-Z0-9_]+)\s+\((\d+(?:\.\d+)?)\)")
# "GRBM_GUI_ACTIVE (27867)" or "TA_TA_BUSY[0]"
var_pattern = re.compile("^\s*([a-zA-Z0-9_]+(?:\[\d+\])?)\s+\((\d+(?:\.\d+)?)\)")

dispatch_number = 0
for line in inp.readlines():
Expand Down

0 comments on commit ff43ca1

Please sign in to comment.