[all-commits] [llvm/llvm-project] d0b9ed: [libomptarget][nfc] Move omptarget-nvptx under common

Jon Chesterfield via All-commits all-commits at lists.llvm.org
Thu Dec 5 12:34:28 PST 2019


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

  Changed paths:
    A openmp/libomptarget/deviceRTLs/common/omptarget.h
    A openmp/libomptarget/deviceRTLs/common/omptargeti.h
    M openmp/libomptarget/deviceRTLs/common/src/loop.cu
    A openmp/libomptarget/deviceRTLs/common/src/omptarget.cu
    M openmp/libomptarget/deviceRTLs/common/src/task.cu
    M openmp/libomptarget/deviceRTLs/nvptx/CMakeLists.txt
    M openmp/libomptarget/deviceRTLs/nvptx/src/data_sharing.cu
    M openmp/libomptarget/deviceRTLs/nvptx/src/libcall.cu
    M openmp/libomptarget/deviceRTLs/nvptx/src/omp_data.cu
    R openmp/libomptarget/deviceRTLs/nvptx/src/omptarget-nvptx.cu
    R openmp/libomptarget/deviceRTLs/nvptx/src/omptarget-nvptx.h
    R openmp/libomptarget/deviceRTLs/nvptx/src/omptarget-nvptxi.h
    M openmp/libomptarget/deviceRTLs/nvptx/src/parallel.cu
    M openmp/libomptarget/deviceRTLs/nvptx/src/reduction.cu
    M openmp/libomptarget/deviceRTLs/nvptx/src/support.cu
    M openmp/libomptarget/deviceRTLs/nvptx/src/sync.cu

  Log Message:
  -----------
  [libomptarget][nfc] Move omptarget-nvptx under common

Summary:
[libomptarget][nfc] Move omptarget-nvptx under common

Almost all files depend on require omptarget-nvptx, which no longer
contains any obviously architecture dependent code. Moving it under
common unblocks task/loop for amdgcn, and allows moving other code.

At some point there should probably be a widespread symbol renaming to
replace the nvptx string. I'd prefer to get things working first.

Building this (and task.cu, loop.cu) without a cuda library requires
some more refactoring, e.g. wrap threadfence(), use DEVICE macro more
consistently. Patches for that are orthogonal and will be posted shortly.

Reviewers: jdoerfert, ABataev, grokos

Reviewed By: ABataev

Subscribers: mgorny, fedor.sergeev, jfb, openmp-commits

Tags: #openmp

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




More information about the All-commits mailing list