-
Notifications
You must be signed in to change notification settings - Fork 90
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
Add macro for Scorep instrumentation of a user-defined code region #1784
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.
The documentation looks good -- I've not actually used this approach to instrument regions but it looks like it matches what I recall from the scorep documentation
Yes, I went from the quick reference here: |
Can |
Thanks @ZedThree, that is simpler - updated! |
Like with SCOREP0, this macro is defined to be null if BOUT is compiled without scorep. Also update coresponding docs.
Sorry, mission creep. The approach documented doesn't build when BOUT is configured without scorep, so I've added a macro for the region that vanishes when there's no scorep support. |
@d7919 - yes it works for me locally and on Archer. 🙂 |
Add a macro to allow scorep instrumentation of a user-defined region of code. The section of code
appears as "region name" in the Scalasca profile. AIUI, the existing
SCOREP0
macro can't be used to do this, as it (very usefully) times the whole function and automatic uses the function name as its display name.