[all-commits] [llvm/llvm-project] 2caeaf: [libomptarget][nfc] Introduce atomic wrapper function

Jon Chesterfield via All-commits all-commits at lists.llvm.org
Wed Dec 18 12:07:07 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 2caeaf2f455db468cc5a5505d90b4919ae37c915
      https://github.com/llvm/llvm-project/commit/2caeaf2f455db468cc5a5505d90b4919ae37c915
  Author: Jon Chesterfield <jonathanchesterfield at gmail.com>
  Date:   2019-12-18 (Wed, 18 Dec 2019)

  Changed paths:
    M openmp/libomptarget/deviceRTLs/amdgcn/CMakeLists.txt
    M openmp/libomptarget/deviceRTLs/common/omptargeti.h
    M openmp/libomptarget/deviceRTLs/common/src/libcall.cu
    M openmp/libomptarget/deviceRTLs/common/src/loop.cu
    M openmp/libomptarget/deviceRTLs/common/src/reduction.cu
    M openmp/libomptarget/deviceRTLs/common/state-queuei.h
    A openmp/libomptarget/deviceRTLs/common/target_atomic.h
    M openmp/libomptarget/deviceRTLs/nvptx/src/target_impl.cu

  Log Message:
  -----------
  [libomptarget][nfc] Introduce atomic wrapper function

Summary:
[libomptarget][nfc] Introduce atomic wrapper function

Wraps atomic functions in a template prefixed __kmpc_atomic that
dispatches to cuda or hip atomic functions. Intended to be easily extended
to dispatch to OpenCL or C++ atomics for a third target.

Reviewers: ABataev, jdoerfert, grokos

Reviewed By: jdoerfert

Subscribers: Anastasia, jvesely, mgrang, dexonsmith, llvm-commits, mgorny, jfb, openmp-commits

Tags: #openmp, #llvm

Differential Revision: https://reviews.llvm.org/D71404




More information about the All-commits mailing list