Skip to content
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

Per-kernel bottleneck analysis script #232

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
uid tested
electricSamarth committed Aug 24, 2021
commit dfd560f30266df1e89e27c5d1d92cd11fa072e05
8 changes: 5 additions & 3 deletions output-parser/bottleneck_analysis.py
Original file line number Diff line number Diff line change
@@ -27,16 +27,18 @@


def uid_line(file):
pattern=re.compile("kernel_launch_uid = (\d*)")
pattern=re.compile("kernel_launch_uid = (\d+)")
res={}
for i,line in enumerate(open(file)):
for match in re.finditer(pattern,line):
capture_id=list(match.group(1))[0]
capture_id=list(match.group(1))
capture_id=int(''.join(capture_id))
if capture_id not in res:
res[capture_id]={}
res[capture_id]["line"]=i
res[capture_id]["uid"]=capture_id

return res

res=uid_line(filename)
print(res[23])