current_task->ompt_task_info.frame.enter_frame.ptr =
OMPT_GET_FRAME_ADDRESS(0);
if (ompt_enabled.ompt_callback_task_create) {
- ompt_data_t task_data = ompt_data_none;
ompt_callbacks.ompt_callback(ompt_callback_task_create)(
- current_task ? &(current_task->ompt_task_info.task_data) : &task_data,
- current_task ? &(current_task->ompt_task_info.frame) : NULL,
+ &(current_task->ompt_task_info.task_data),
+ &(current_task->ompt_task_info.frame),
&(new_taskdata->ompt_task_info.task_data),
ompt_task_explicit | TASK_TYPE_DETAILS_FORMAT(new_taskdata), 1,
OMPT_LOAD_OR_GET_RETURN_ADDRESS(gtid));
void __ompt_taskwait_dep_finish(kmp_taskdata_t *current_task,
ompt_data_t *taskwait_task_data) {
if (ompt_enabled.ompt_callback_task_schedule) {
- ompt_data_t task_data = ompt_data_none;
ompt_callbacks.ompt_callback(ompt_callback_task_schedule)(
- current_task ? &(current_task->ompt_task_info.task_data) : &task_data,
- ompt_task_switch, taskwait_task_data);
+ &(current_task->ompt_task_info.task_data), ompt_task_switch,
+ taskwait_task_data);
ompt_callbacks.ompt_callback(ompt_callback_task_schedule)(
taskwait_task_data, ompt_task_complete,
- current_task ? &(current_task->ompt_task_info.task_data) : &task_data);
+ &(current_task->ompt_task_info.task_data));
}
current_task->ompt_task_info.frame.enter_frame.ptr = NULL;
*taskwait_task_data = ompt_data_none;
current_task->ompt_task_info.frame.enter_frame.ptr =
OMPT_GET_FRAME_ADDRESS(0);
if (ompt_enabled.ompt_callback_task_create) {
- ompt_data_t task_data = ompt_data_none;
ompt_callbacks.ompt_callback(ompt_callback_task_create)(
- current_task ? &(current_task->ompt_task_info.task_data) : &task_data,
- current_task ? &(current_task->ompt_task_info.frame) : NULL,
- taskwait_task_data,
+ &(current_task->ompt_task_info.task_data),
+ &(current_task->ompt_task_info.frame), taskwait_task_data,
ompt_task_explicit | ompt_task_undeferred | ompt_task_mergeable, 1,
OMPT_LOAD_OR_GET_RETURN_ADDRESS(gtid));
}