[Openmp-commits] [PATCH] D94565: [libomptarget][nvptx] Include omp_data.cu in bitcode deviceRTL
Jon Chesterfield via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Tue Jan 12 16:31:39 PST 2021
JonChesterfield created this revision.
JonChesterfield added reviewers: jdoerfert, ABataev, grokos, tianshilei1992, ye-luo.
Herald added a subscriber: mgorny.
JonChesterfield requested review of this revision.
Herald added subscribers: openmp-commits, sstefan1.
Herald added a project: OpenMP.
[libomptarget][nvptx] Include omp_data.cu in bitcode deviceRTL
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D94565
Files:
openmp/libomptarget/deviceRTLs/nvptx/CMakeLists.txt
Index: openmp/libomptarget/deviceRTLs/nvptx/CMakeLists.txt
===================================================================
--- openmp/libomptarget/deviceRTLs/nvptx/CMakeLists.txt
+++ openmp/libomptarget/deviceRTLs/nvptx/CMakeLists.txt
@@ -56,6 +56,7 @@
${devicertl_common_directory}/src/data_sharing.cu
${devicertl_common_directory}/src/libcall.cu
${devicertl_common_directory}/src/loop.cu
+ ${devicertl_common_directory}/src/omp_data.cu
${devicertl_common_directory}/src/omptarget.cu
${devicertl_common_directory}/src/parallel.cu
${devicertl_common_directory}/src/reduction.cu
@@ -65,8 +66,6 @@
src/target_impl.cu
)
- set(omp_data_objects ${devicertl_common_directory}/src/omp_data.cu)
-
# Build library support for the highest compute capability the system supports
# and always build support for sm_35 by default
if (${LIBOMPTARGET_DEP_CUDA_ARCH} EQUAL 35)
@@ -105,7 +104,7 @@
set(CUDA_SEPARABLE_COMPILATION ON)
list(APPEND CUDA_NVCC_FLAGS -I${devicertl_base_directory}
-I${devicertl_nvptx_directory}/src)
- cuda_add_library(omptarget-nvptx STATIC ${cuda_src_files} ${omp_data_objects}
+ cuda_add_library(omptarget-nvptx STATIC ${cuda_src_files}
OPTIONS ${CUDA_ARCH} ${CUDA_DEBUG} ${MAX_SM_DEFINITION})
# Install device RTL under the lib destination folder.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D94565.316271.patch
Type: text/x-patch
Size: 1385 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20210113/a5e99b2c/attachment-0001.bin>
More information about the Openmp-commits
mailing list