Skip to content

Incorrect entry point obtained by ompd_get_task_function() for the implicit task associated with a serialized parallel region #6

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

Merged
Changes from all commits
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
8 changes: 8 additions & 0 deletions openmp/runtime/src/kmp_runtime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1521,6 +1521,10 @@ int __kmp_fork_call(ident_t *loc, int gtid,
__kmpc_serialized_parallel(loc, gtid);
KMP_DEBUG_ASSERT(parent_team->t.t_serialized > 1);

#if OMPD_SUPPORT
parent_team->t.t_pkfn = microtask;
#endif

#if OMPT_SUPPORT
void *dummy;
void **exit_frame_p;
Expand Down Expand Up @@ -1733,6 +1737,10 @@ int __kmp_fork_call(ident_t *loc, int gtid,

__kmpc_serialized_parallel(loc, gtid);

#if OMPD_SUPPORT
master_th->th.th_serial_team->t.t_pkfn = microtask;
#endif

if (call_context == fork_context_intel) {
/* TODO this sucks, use the compiler itself to pass args! :) */
master_th->th.th_serial_team->t.t_ident = loc;
Expand Down