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

Joseph Huber via Openmp-commits openmp-commits at lists.llvm.org
Tue May 21 11:18:29 PDT 2024


================
@@ -57,6 +59,12 @@ int32_t shuffleDown(uint64_t Mask, int32_t Var, uint32_t LaneDelta,
   return __builtin_amdgcn_ds_bpermute(Index << 2, Var);
 }
 
+uint32_t ballotSync(uint32_t Mask, int32_t Pred) {
----------------
jhuber6 wrote:

Just do what https://github.com/llvm/llvm-project/blob/main/libc/src/__support/GPU/amdgpu/utils.h#L131 does.

I want to put a lot of these utilities in compiler-rt or something, since we have multiple users.

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


More information about the Openmp-commits mailing list