[Openmp-commits] [openmp] cd90f49 - [libomptarget][nfc] Move three more files to common

Jon Chesterfield via Openmp-commits openmp-commits at lists.llvm.org
Fri Dec 6 07:30:04 PST 2019


Author: Jon Chesterfield
Date: 2019-12-06T15:29:50Z
New Revision: cd90f49d708dbc8f367eb4c575f62ab614900f59

URL: https://github.com/llvm/llvm-project/commit/cd90f49d708dbc8f367eb4c575f62ab614900f59
DIFF: https://github.com/llvm/llvm-project/commit/cd90f49d708dbc8f367eb4c575f62ab614900f59.diff

LOG: [libomptarget][nfc] Move three more files to common

Summary: [libomptarget][nfc] Move three more files to common

Reviewers: ABataev, jdoerfert, grokos

Reviewed By: ABataev

Subscribers: openmp-commits

Tags: #openmp

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

Added: 
    openmp/libomptarget/deviceRTLs/common/src/parallel.cu
    openmp/libomptarget/deviceRTLs/common/src/support.cu
    openmp/libomptarget/deviceRTLs/common/src/sync.cu

Modified: 
    openmp/libomptarget/deviceRTLs/nvptx/CMakeLists.txt

Removed: 
    openmp/libomptarget/deviceRTLs/nvptx/src/parallel.cu
    openmp/libomptarget/deviceRTLs/nvptx/src/support.cu
    openmp/libomptarget/deviceRTLs/nvptx/src/sync.cu


################################################################################
diff  --git a/openmp/libomptarget/deviceRTLs/nvptx/src/parallel.cu b/openmp/libomptarget/deviceRTLs/common/src/parallel.cu
similarity index 99%
rename from openmp/libomptarget/deviceRTLs/nvptx/src/parallel.cu
rename to openmp/libomptarget/deviceRTLs/common/src/parallel.cu
index 02106f5ec745..4934621de58d 100644
--- a/openmp/libomptarget/deviceRTLs/nvptx/src/parallel.cu
+++ b/openmp/libomptarget/deviceRTLs/common/src/parallel.cu
@@ -1,4 +1,4 @@
-//===---- parallel.cu - NVPTX OpenMP parallel implementation ----- CUDA -*-===//
+//===---- parallel.cu - GPU OpenMP parallel implementation ------- CUDA -*-===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.

diff  --git a/openmp/libomptarget/deviceRTLs/nvptx/src/support.cu b/openmp/libomptarget/deviceRTLs/common/src/support.cu
similarity index 99%
rename from openmp/libomptarget/deviceRTLs/nvptx/src/support.cu
rename to openmp/libomptarget/deviceRTLs/common/src/support.cu
index 10c9c0930cf2..44a42e172f21 100644
--- a/openmp/libomptarget/deviceRTLs/nvptx/src/support.cu
+++ b/openmp/libomptarget/deviceRTLs/common/src/support.cu
@@ -1,4 +1,4 @@
-//===--------- support.cu - NVPTX OpenMP support functions ------- CUDA -*-===//
+//===--------- support.cu - GPU OpenMP support functions --------- CUDA -*-===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.

diff  --git a/openmp/libomptarget/deviceRTLs/nvptx/src/sync.cu b/openmp/libomptarget/deviceRTLs/common/src/sync.cu
similarity index 98%
rename from openmp/libomptarget/deviceRTLs/nvptx/src/sync.cu
rename to openmp/libomptarget/deviceRTLs/common/src/sync.cu
index 808e747875fa..0ee29bf316b3 100644
--- a/openmp/libomptarget/deviceRTLs/nvptx/src/sync.cu
+++ b/openmp/libomptarget/deviceRTLs/common/src/sync.cu
@@ -1,4 +1,4 @@
-//===------------ sync.h - NVPTX OpenMP synchronizations --------- CUDA -*-===//
+//===------------ sync.cu - GPU OpenMP synchronizations ---------- CUDA -*-===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.

diff  --git a/openmp/libomptarget/deviceRTLs/nvptx/CMakeLists.txt b/openmp/libomptarget/deviceRTLs/nvptx/CMakeLists.txt
index eaf4c11d086a..b03c6c5c3f76 100644
--- a/openmp/libomptarget/deviceRTLs/nvptx/CMakeLists.txt
+++ b/openmp/libomptarget/deviceRTLs/nvptx/CMakeLists.txt
@@ -57,10 +57,10 @@ if(LIBOMPTARGET_DEP_CUDA_FOUND)
       src/libcall.cu
       ${devicertl_common_directory}/src/loop.cu
       ${devicertl_common_directory}/src/omptarget.cu
-      src/parallel.cu
+      ${devicertl_common_directory}/src/parallel.cu
       src/reduction.cu
-      src/support.cu
-      src/sync.cu
+      ${devicertl_common_directory}/src/support.cu
+      ${devicertl_common_directory}/src/sync.cu
       ${devicertl_common_directory}/src/task.cu
   )
 


        


More information about the Openmp-commits mailing list