[Openmp-commits] [openmp] [OpenMP] Remove declaration and usage of __AMDGCN_WAVEFRONT_SIZE (PR #143761)

Fabian Ritter via Openmp-commits openmp-commits at lists.llvm.org
Thu Jun 12 00:13:05 PDT 2025


================
@@ -212,7 +220,7 @@ static inline uint64_t ballot_sync(uint64_t mask, int pred) {
 ///{
 #define _TGT_KERNEL_LANGUAGE_SHFL_DOWN_SYNC(TYPE, TY)                          \
   static inline TYPE shfl_down_sync(uint64_t mask, TYPE var, unsigned delta,   \
-                                    int width = __WARP_SIZE) {                 \
+                                    int width = gpu_num_lanes()) {                 \
----------------
ritter-x2a wrote:

Nit: remove whitespaces so that the backslashes at the end of the line line up

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


More information about the Openmp-commits mailing list