[Openmp-commits] [openmp] [OpenMP][OMPT] Emit `dispatch` callback for serial loops (PR #207773)
Jan Patrick Lehr via Openmp-commits
openmp-commits at lists.llvm.org
Wed Aug 26 06:09:12 PDT 2026
================
@@ -436,26 +458,7 @@ static void __kmp_for_static_init(ident_t *loc, kmp_int32 global_tid,
KE_TRACE(10, ("__kmpc_for_static_init: T#%d return\n", global_tid));
OMPT_LOOP_BEGIN(trip_count);
-#if OMPT_SUPPORT && OMPT_OPTIONAL
- if (ompt_enabled.ompt_callback_dispatch) {
- ompt_dispatch_t dispatch_type;
- ompt_data_t instance = ompt_data_none;
- ompt_dispatch_chunk_t dispatch_chunk;
- if (ompt_work_type == ompt_work_sections) {
- dispatch_type = ompt_dispatch_section;
- instance.ptr = codeptr;
- } else {
- OMPT_GET_DISPATCH_CHUNK(dispatch_chunk, *plower, *pupper, incr);
- dispatch_type = (ompt_work_type == ompt_work_distribute)
- ? ompt_dispatch_distribute_chunk
- : ompt_dispatch_ws_loop_chunk;
- instance.ptr = &dispatch_chunk;
- }
- ompt_callbacks.ompt_callback(ompt_callback_dispatch)(
- &(team_info->parallel_data), &(task_info->task_data), dispatch_type,
- instance);
- }
-#endif
+ OMPT_DISPATCH_CHUNK(*plower, *pupper, incr);
----------------
jplehr wrote:
What happened to the `OMPT_OPTIONAL`?
https://github.com/llvm/llvm-project/pull/207773
More information about the Openmp-commits
mailing list