[Openmp-commits] [PATCH] D95085: [OpenMP][NVPTX] Added forward declaration for atomic operations

Jon Chesterfield via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Wed Jan 20 14:12:28 PST 2021


JonChesterfield added inline comments.


================
Comment at: openmp/libomptarget/deviceRTLs/nvptx/src/target_impl.h:136
+// the right mangled names.
+template <typename T> T atomicAdd(T *address, T val);
+template <typename T> T atomicInc(T *address, T val);
----------------
I think these all need to be marked DEVICE


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D95085



More information about the Openmp-commits mailing list