[Openmp-commits] [PATCH] D49564: [OPNEMP, NVPTX] Fixed sychronization construct + code cleanup.

Alexey Bataev via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Mon Jul 23 06:35:22 PDT 2018


ABataev added inline comments.


================
Comment at: libomptarget/deviceRTLs/nvptx/src/sync.cu:53-69
+    int numberOfActiveOMPThreads = GetNumberOfOmpThreads(
+        tid, isSPMDMode(), /*isRuntimeUninitialized=*/false);
+    if (numberOfActiveOMPThreads > 1) {
+      if (isSPMDMode()) {
+        __kmpc_barrier_simple_spmd(loc_ref, tid);
+      } else {
         // The #threads parameter must be rounded up to the WARPSIZE.
----------------
grokos wrote:
> Have these changes been tested on pre-Volta cards?
Yes


Repository:
  rOMP OpenMP

https://reviews.llvm.org/D49564





More information about the Openmp-commits mailing list