Skip to content

Commit 0091c9e

Browse files
committed
fix regression introduced while merging
1 parent 5f69583 commit 0091c9e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

runtime/src/kmp_gsupport.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ __kmp_GOMP_microtask_wrapper(int *gtid, int *npr, void (*task)(void *),
273273

274274
// set task frame
275275
ompt_frame = __ompt_get_task_frame_internal(0);
276-
ompt_frame->exit_runtime_frame = __builtin_frame_address(1);
276+
ompt_frame->exit_runtime_frame = __builtin_frame_address(0);
277277
}
278278
#endif
279279

@@ -318,7 +318,7 @@ __kmp_GOMP_parallel_microtask_wrapper(int *gtid, int *npr,
318318

319319
// set task frame
320320
ompt_frame = __ompt_get_task_frame_internal(0);
321-
ompt_frame->exit_runtime_frame = __builtin_frame_address(1);
321+
ompt_frame->exit_runtime_frame = __builtin_frame_address(0);
322322
}
323323
#endif
324324

@@ -986,7 +986,7 @@ xexpand(KMP_API_NAME_GOMP_TASK)(void (*func)(void *), void *data, void (*copy_fu
986986
thread->th.ompt_thread_info.wait_id = 0;
987987
thread->th.ompt_thread_info.state = ompt_state_work_parallel;
988988
taskdata->ompt_task_info.frame.exit_runtime_frame =
989-
__builtin_frame_address(1);
989+
__builtin_frame_address(0);
990990
}
991991
#endif
992992

runtime/src/kmp_tasking.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1222,7 +1222,7 @@ __kmp_invoke_task( kmp_int32 gtid, kmp_task_t *task, kmp_taskdata_t * current_ta
12221222
oldInfo = thread->th.ompt_thread_info;
12231223
thread->th.ompt_thread_info.wait_id = 0;
12241224
thread->th.ompt_thread_info.state = ompt_state_work_parallel;
1225-
taskdata->ompt_task_info.frame.exit_runtime_frame = __builtin_frame_address(1);
1225+
taskdata->ompt_task_info.frame.exit_runtime_frame = __builtin_frame_address(0);
12261226
}
12271227
#endif
12281228

0 commit comments

Comments
 (0)