[Openmp-commits] [PATCH] D63515: [OPENMP][CUDA]Use __syncthreads when compiled by nvcc and clang >= 9.0.

Hal Finkel via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Tue Jun 18 14:01:21 PDT 2019


hfinkel accepted this revision.
hfinkel added a comment.
This revision is now accepted and ready to land.

LGTM. Thanks!



================
Comment at: libomptarget/deviceRTLs/nvptx/src/omptarget-nvptx.h:64
 #define __SYNCTHREADS_N(n) asm volatile("bar.sync %0;" : : "r"(n) : "memory");
+// Use original __syncthreads if compiled by nvcc or clang >= 9.0
+#if !defined(__clang__) || __clang_major__ >= 9
----------------
Please end comments with a period.


Repository:
  rOMP OpenMP

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

https://reviews.llvm.org/D63515





More information about the Openmp-commits mailing list