Skip to content

Commit 84e0b14

Browse files
[libomptarget][nvptx] Include omp_data.cu in bitcode deviceRTL
[libomptarget][nvptx] Include omp_data.cu in bitcode deviceRTL Reviewed By: tianshilei1992 Differential Revision: https://reviews.llvm.org/D94565
1 parent 8a47d87 commit 84e0b14

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

openmp/libomptarget/deviceRTLs/nvptx/CMakeLists.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ if(LIBOMPTARGET_DEP_CUDA_FOUND)
5656
${devicertl_common_directory}/src/data_sharing.cu
5757
${devicertl_common_directory}/src/libcall.cu
5858
${devicertl_common_directory}/src/loop.cu
59+
${devicertl_common_directory}/src/omp_data.cu
5960
${devicertl_common_directory}/src/omptarget.cu
6061
${devicertl_common_directory}/src/parallel.cu
6162
${devicertl_common_directory}/src/reduction.cu
@@ -65,8 +66,6 @@ if(LIBOMPTARGET_DEP_CUDA_FOUND)
6566
src/target_impl.cu
6667
)
6768

68-
set(omp_data_objects ${devicertl_common_directory}/src/omp_data.cu)
69-
7069
# Build library support for the highest compute capability the system supports
7170
# and always build support for sm_35 by default
7271
if (${LIBOMPTARGET_DEP_CUDA_ARCH} EQUAL 35)
@@ -105,7 +104,7 @@ if(LIBOMPTARGET_DEP_CUDA_FOUND)
105104
set(CUDA_SEPARABLE_COMPILATION ON)
106105
list(APPEND CUDA_NVCC_FLAGS -I${devicertl_base_directory}
107106
-I${devicertl_nvptx_directory}/src)
108-
cuda_add_library(omptarget-nvptx STATIC ${cuda_src_files} ${omp_data_objects}
107+
cuda_add_library(omptarget-nvptx STATIC ${cuda_src_files}
109108
OPTIONS ${CUDA_ARCH} ${CUDA_DEBUG} ${MAX_SM_DEFINITION})
110109

111110
# Install device RTL under the lib destination folder.

0 commit comments

Comments
 (0)