@@ -225,10 +225,9 @@ void __kmp_dist_barrier_wakeup(enum barrier_type bt, kmp_team_t *team,
225
225
}
226
226
}
227
227
228
- static void
229
- __kmp_dist_barrier_gather (enum barrier_type bt, kmp_info_t *this_thr, int gtid,
230
- int tid, void (*reduce)(void *, void *)
231
- USE_ITT_BUILD_ARG(void *itt_sync_obj)) {
228
+ static void __kmp_dist_barrier_gather (
229
+ enum barrier_type bt, kmp_info_t *this_thr, int gtid, int tid,
230
+ void (*reduce)(void *, void *) USE_ITT_BUILD_ARG(void *itt_sync_obj)) {
232
231
KMP_TIME_DEVELOPER_PARTITIONED_BLOCK (KMP_dist_gather);
233
232
kmp_team_t *team;
234
233
distributedBarrier *b;
@@ -404,7 +403,7 @@ static void __kmp_dist_barrier_release(
404
403
if (KMP_COMPARE_AND_STORE_ACQ32 (&(this_thr->th .th_used_in_team ), 2 ,
405
404
0 ) ||
406
405
this_thr->th .th_used_in_team .load () == 0 ) {
407
- my_flag.wait (this_thr, true , itt_sync_obj);
406
+ my_flag.wait (this_thr, true USE_ITT_BUILD_ARG ( itt_sync_obj) );
408
407
}
409
408
#if USE_ITT_BUILD && USE_ITT_NOTIFY
410
409
if ((__itt_sync_create_ptr && itt_sync_obj == NULL ) || KMP_ITT_DEBUG) {
@@ -454,7 +453,7 @@ static void __kmp_dist_barrier_release(
454
453
// Wait on go flag on team
455
454
kmp_atomic_flag_64<false , true > my_flag (
456
455
&(b->go [my_go_index].go ), next_go, &(b->sleep [tid].sleep ));
457
- my_flag.wait (this_thr, true , itt_sync_obj);
456
+ my_flag.wait (this_thr, true USE_ITT_BUILD_ARG ( itt_sync_obj) );
458
457
KMP_DEBUG_ASSERT (my_current_iter == b->iter [tid].iter ||
459
458
b->iter [tid].iter == 0 );
460
459
KMP_DEBUG_ASSERT (b->sleep [tid].sleep == false );
0 commit comments