[Openmp-commits] [PATCH] D71404: [libomptarget][nfc] Introduce atomic wrapper function

Jon Chesterfield via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Thu Dec 12 02:46:38 PST 2019


JonChesterfield created this revision.
JonChesterfield added reviewers: ABataev, jdoerfert, grokos.
Herald added subscribers: openmp-commits, jfb, mgorny.
Herald added a project: OpenMP.

[libomptarget][nfc] Introduce atomic wrapper function
Initial diff only adds atomic add. Seeking consensus on:

- naming convention. Prefix, namespace, case style
- inline header vs explicit shared interface

I'll update this diff to whatever is agreed upon there, then add an amdgcn
implementation and the remaining atomic functions used by deviceRTL.

Extra functions can be in one diff per function if preferred.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D71404

Files:
  openmp/libomptarget/deviceRTLs/common/src/loop.cu
  openmp/libomptarget/deviceRTLs/common/state-queuei.h
  openmp/libomptarget/deviceRTLs/common/target_atomic.h
  openmp/libomptarget/deviceRTLs/nvptx/CMakeLists.txt
  openmp/libomptarget/deviceRTLs/nvptx/src/libcall.cu
  openmp/libomptarget/deviceRTLs/nvptx/src/reduction.cu
  openmp/libomptarget/deviceRTLs/nvptx/src/target_atomic.cu

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D71404.233552.patch
Type: text/x-patch
Size: 7055 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20191212/6a81b3a8/attachment.bin>


More information about the Openmp-commits mailing list