report_benchmark.py: Detecting "mcycle" without CSR pseudo-code (#1786)

This commit is contained in:
Jalali 2024-01-26 13:26:03 +00:00 committed by GitHub
parent fa101fae7a
commit dc633a282c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -41,7 +41,7 @@ with open(path, 'r') as f:
stopwatch = []
for index, line in enumerate(log):
if line.split()[-1] == 'mcycle':
if line.split()[-1] == 'mcycle' or line.split()[-2] == 'mcycle,':
stopwatch.append(int(log[index + 1].split()[-1], 16))
# There might be > 2 matches, we use the two at the center
N = len(stopwatch)