-
Notifications
You must be signed in to change notification settings - Fork 13.4k
[OpenMP][OMPT] Indicate loop schedule for worksharing-loop events #97429
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
Conversation
Use more specific values from `ompt_work_t` to allow the tool identify the schedule of a worksharing-loop. With this patch, the runtime will report the schedule chosen by the runtime rather than necessarily the schedule literally requested by the clause. E.g., for guided + just one iteration per thread, the runtime would choose static. Fixes issue llvm#63904
✅ With the latest revision this PR passed the C/C++ code formatter. |
Thanks a lot for the PR. I've looked through our internal OpenMP CI. No test reports |
openmp/runtime/src/ompt-specific.h
Outdated
@@ -130,6 +130,28 @@ inline const char *ompt_get_runtime_version() { | |||
return &__kmp_version_lib_ver[KMP_VERSION_MAGIC_LEN]; | |||
} | |||
|
|||
inline ompt_work_t ompt_get_work_schedule(enum sched_type schedule){ | |||
printf("Schedule val: %i\n", schedule); |
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.
Can you remove the printf
statement if it is not intended?
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.
LGTM
…vm#97429) Use more specific values from `ompt_work_t` to allow the tool identify the schedule of a worksharing-loop. With this patch, the runtime will report the schedule chosen by the runtime rather than necessarily the schedule literally requested by the clause. E.g., for guided + just one iteration per thread, the runtime would choose and report static. Fixes issue llvm#63904
…vm#97429) Use more specific values from `ompt_work_t` to allow the tool identify the schedule of a worksharing-loop. With this patch, the runtime will report the schedule chosen by the runtime rather than necessarily the schedule literally requested by the clause. E.g., for guided + just one iteration per thread, the runtime would choose and report static. Fixes issue llvm#63904
Use more specific values from
ompt_work_t
to allow the tool identify the schedule of a worksharing-loop. With this patch, the runtime will report the schedule chosen by the runtime rather than necessarily the schedule literally requested by the clause.E.g., for guided + just one iteration per thread, the runtime would choose and report static.
Fixes issue #63904