[Openmp-commits] [PATCH] D104638: [omp] Fix build without ITT after D103121 changes
Vladislav Vinogradov via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Mon Jun 21 08:17:22 PDT 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rGeab1fd389b61: [omp] Fix build without ITT after D103121 changes (authored by vinograd47).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D104638/new/
https://reviews.llvm.org/D104638
Files:
openmp/runtime/src/kmp_barrier.cpp
openmp/runtime/src/kmp_wait_release.h
Index: openmp/runtime/src/kmp_wait_release.h
===================================================================
--- openmp/runtime/src/kmp_wait_release.h
+++ openmp/runtime/src/kmp_wait_release.h
@@ -943,7 +943,8 @@
}
kmp_flag_oncore(volatile kmp_uint64 *p, kmp_uint32 idx)
: kmp_flag_native<kmp_uint64, flag_oncore, false>(p), offset(idx),
- flag_switch(false), bt(bs_last_barrier), itt_sync_obj(nullptr) {}
+ flag_switch(false),
+ bt(bs_last_barrier) USE_ITT_BUILD_ARG(itt_sync_obj(nullptr)) {}
kmp_flag_oncore(volatile kmp_uint64 *p, kmp_uint64 c, kmp_uint32 idx,
enum barrier_type bar_t,
kmp_info_t *thr USE_ITT_BUILD_ARG(void *itt))
Index: openmp/runtime/src/kmp_barrier.cpp
===================================================================
--- openmp/runtime/src/kmp_barrier.cpp
+++ openmp/runtime/src/kmp_barrier.cpp
@@ -225,10 +225,9 @@
}
}
-static void
-__kmp_dist_barrier_gather(enum barrier_type bt, kmp_info_t *this_thr, int gtid,
- int tid, void (*reduce)(void *, void *)
- USE_ITT_BUILD_ARG(void *itt_sync_obj)) {
+static void __kmp_dist_barrier_gather(
+ enum barrier_type bt, kmp_info_t *this_thr, int gtid, int tid,
+ void (*reduce)(void *, void *) USE_ITT_BUILD_ARG(void *itt_sync_obj)) {
KMP_TIME_DEVELOPER_PARTITIONED_BLOCK(KMP_dist_gather);
kmp_team_t *team;
distributedBarrier *b;
@@ -404,7 +403,7 @@
if (KMP_COMPARE_AND_STORE_ACQ32(&(this_thr->th.th_used_in_team), 2,
0) ||
this_thr->th.th_used_in_team.load() == 0) {
- my_flag.wait(this_thr, true, itt_sync_obj);
+ my_flag.wait(this_thr, true USE_ITT_BUILD_ARG(itt_sync_obj));
}
#if USE_ITT_BUILD && USE_ITT_NOTIFY
if ((__itt_sync_create_ptr && itt_sync_obj == NULL) || KMP_ITT_DEBUG) {
@@ -454,7 +453,7 @@
// Wait on go flag on team
kmp_atomic_flag_64<false, true> my_flag(
&(b->go[my_go_index].go), next_go, &(b->sleep[tid].sleep));
- my_flag.wait(this_thr, true, itt_sync_obj);
+ my_flag.wait(this_thr, true USE_ITT_BUILD_ARG(itt_sync_obj));
KMP_DEBUG_ASSERT(my_current_iter == b->iter[tid].iter ||
b->iter[tid].iter == 0);
KMP_DEBUG_ASSERT(b->sleep[tid].sleep == false);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D104638.353384.patch
Type: text/x-patch
Size: 2400 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20210621/570d7ed5/attachment.bin>
More information about the Openmp-commits
mailing list