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

[Profiler] Count Memory Access & Arith Ops from MLIR code #463

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tonyjie
Copy link

@tonyjie tonyjie commented May 25, 2022

Profiler: Count Memory Access & Arith Ops from MLIR code

Add feature:
Read the .mlir code and count memory access and arithmetic ops by analyzing the loop nest.

How to use the new feature:
python profile.py <file_name.mlir>

Detailed description: implementation details
Get the tripcount of current loop, and accumulates the number of memory access when visiting AffineLoadOp and AffineStoreOp; accumulates the number of ArithOps when visiting arith.AddIOp, arith.MulIOp, arith.AddFOp, arith.MulFOp

Link to the tests:
https://github.com/zzzDavid/hcl-memory-opt/tree/main/roofline_profile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant