-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added new trace event count and added it to vector_scalar_mul #2042
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit
black
[black] reported by reviewdog 🐶
with open(trace_path, 'r') as f: |
[black] reported by reviewdog 🐶
if (x['name'] == "INSTR_EVENT_0") and (x['ph'] == 'B'): |
[black] reported by reviewdog 🐶
event0 = (x['ts']) |
[black] reported by reviewdog 🐶
mlir-aie/programming_examples/utils/trace_utils.py
Lines 132 to 134 in 28dc0ff
if x['name'] == "INSTR_EVENT_1" and x['ph'] == 'B': |
[black] reported by reviewdog 🐶
delta.append(x['ts'] - event0) |
[black] reported by reviewdog 🐶
[black] reported by reviewdog 🐶
def get_vector_time(trace): |
[black] reported by reviewdog 🐶
with open(trace, 'r') as f: |
[black] reported by reviewdog 🐶
[black] reported by reviewdog 🐶
mlir-aie/programming_examples/utils/trace_utils.py
Lines 157 to 160 in 28dc0ff
if (x['name'] == "INSTR_EVENT_0") and (x['ph'] == 'B'): | |
start = x['ts'] | |
if x['name'] == "INSTR_EVENT_1" and x['ph'] == 'B': | |
end = x['ts'] |
[black] reported by reviewdog 🐶
[black] reported by reviewdog 🐶
mlir-aie/programming_examples/utils/trace_utils.py
Lines 169 to 170 in 28dc0ff
if event['name'] == "INSTR_VECTOR": | |
if event['ts'] < start: |
[black] reported by reviewdog 🐶
mlir-aie/programming_examples/utils/trace_utils.py
Lines 172 to 173 in 28dc0ff
if event['ts'] > end: |
[black] reported by reviewdog 🐶
mlir-aie/programming_examples/utils/trace_utils.py
Lines 175 to 176 in 28dc0ff
if event['ph'] == 'B': |
[black] reported by reviewdog 🐶
elif event['ph'] == 'E' and stack: |
[black] reported by reviewdog 🐶
duration = event['ts'] - begin_event['ts'] |
[black] reported by reviewdog 🐶
mlir-aie/programming_examples/utils/trace_utils.py
Lines 184 to 185 in 28dc0ff
return total_duration/(end-start) |
No description provided.