[Openmp-commits] [PATCH] D56290: [OPENMP][NVPTX]General formatting/code improvement, NFC.

George Rokos via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Fri Jan 4 08:24:48 PST 2019


grokos added inline comments.


================
Comment at: libomptarget/deviceRTLs/nvptx/src/loop.cu:420
   // in a warp cannot make independent progress.
-  NOINLINE static int dispatch_next(int32_t gtid, int32_t *plast, T *plower,
-                                    T *pupper, ST *pstride) {
+  INLINE static int dispatch_next(int32_t gtid, int32_t *plast, T *plower,
+                                  T *pupper, ST *pstride) {
----------------
What about the Pascal issue when inlining this function?


================
Comment at: libomptarget/deviceRTLs/nvptx/src/reduction.cu:197
 #else
-  uint32_t Liveness = __BALLOT_SYNC(0xFFFFFFFF, true);
+  uint32_t Liveness = __ACTIVEMASK();
   if (Liveness == 0xffffffff) // Full warp
----------------
Can the rest of `__BALLOT_SYNC` instances in this file be replaced with `__ACTIVEMASK()`? If so, then we can remove the definition of `__BALLOT_SYNC` altogether from `omptarget-nvptx.h`.


Repository:
  rOMP OpenMP

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D56290/new/

https://reviews.llvm.org/D56290





More information about the Openmp-commits mailing list