[Openmp-commits] [llvm] [openmp] [OpenMP][OMPX] Add ballot_sync (PR #91297)

Shilei Tian via Openmp-commits openmp-commits at lists.llvm.org
Thu May 23 08:16:23 PDT 2024


================
@@ -81,6 +83,10 @@ _TGT_KERNEL_LANGUAGE_HOST_IMPL_SYNC_C(void, sync_block_divergent, int Ordering,
 #undef _TGT_KERNEL_LANGUAGE_HOST_IMPL_SYNC_C
 ///}
 
+static INLINE uint64_t ompx_ballot_sync(uint64_t mask, int pred) {
+  __builtin_trap();
+}
----------------
shiltian wrote:

This is more like a temporary solution before we force the front end to stop emitting host fallback when kernel lang mode is turned on automatically; otherwise undefined symbol link error would appear.

https://github.com/llvm/llvm-project/pull/91297


More information about the Openmp-commits mailing list