diff --git a/openmp/runtime/src/kmp_tasking.cpp b/openmp/runtime/src/kmp_tasking.cpp --- a/openmp/runtime/src/kmp_tasking.cpp +++ b/openmp/runtime/src/kmp_tasking.cpp @@ -711,6 +711,8 @@ ompt_frame_runtime | ompt_frame_framepointer; task->ompt_task_info.frame.enter_frame_flags = ompt_frame_runtime | ompt_frame_framepointer; + task->ompt_task_info.dispatch_chunk.start = 0; + task->ompt_task_info.dispatch_chunk.iterations = 0; } // __ompt_task_start: diff --git a/openmp/runtime/src/ompt-internal.h b/openmp/runtime/src/ompt-internal.h --- a/openmp/runtime/src/ompt-internal.h +++ b/openmp/runtime/src/ompt-internal.h @@ -57,7 +57,7 @@ ompt_data_t task_data; struct kmp_taskdata *scheduling_parent; int thread_num; - ompt_dispatch_chunk_t dispatch_chunk = {0, 0}; + ompt_dispatch_chunk_t dispatch_chunk; } ompt_task_info_t; typedef struct {