[libomptarget][nfc] Move three more files to common
authorJon Chesterfield <jonathanchesterfield@gmail.com>
Fri, 6 Dec 2019 15:29:49 +0000 (15:29 +0000)
committerJon Chesterfield <jonathanchesterfield@gmail.com>
Fri, 6 Dec 2019 15:29:50 +0000 (15:29 +0000)
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

openmp/libomptarget/deviceRTLs/common/src/parallel.cu [moved from openmp/libomptarget/deviceRTLs/nvptx/src/parallel.cu with 99% similarity]
openmp/libomptarget/deviceRTLs/common/src/support.cu [moved from openmp/libomptarget/deviceRTLs/nvptx/src/support.cu with 99% similarity]
openmp/libomptarget/deviceRTLs/common/src/sync.cu [moved from openmp/libomptarget/deviceRTLs/nvptx/src/sync.cu with 98% similarity]
openmp/libomptarget/deviceRTLs/nvptx/CMakeLists.txt

@@ -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.
@@ -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.
@@ -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.
index eaf4c11..b03c6c5 100644 (file)
@@ -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
   )