16
16
cmake_minimum_required (VERSION 3.23.1 FATAL_ERROR )
17
17
18
18
if (NOT EXISTS ${CMAKE_CURRENT_BINARY_DIR} /CUCO_RAPIDS.cmake )
19
- file (DOWNLOAD https://raw.githubusercontent.com/rapidsai/rapids-cmake/branch-23.12 /RAPIDS.cmake
19
+ file (DOWNLOAD https://raw.githubusercontent.com/rapidsai/rapids-cmake/branch-24.02 /RAPIDS.cmake
20
20
${CMAKE_CURRENT_BINARY_DIR} /CUCO_RAPIDS.cmake )
21
21
endif ()
22
22
include (${CMAKE_CURRENT_BINARY_DIR} /CUCO_RAPIDS.cmake )
@@ -74,8 +74,7 @@ rapids_find_package(
74
74
75
75
rapids_cpm_init ()
76
76
77
- include (cmake/thirdparty/get_thrust.cmake )
78
- include (cmake/thirdparty/get_libcudacxx.cmake )
77
+ include (cmake/thirdparty/get_cccl.cmake )
79
78
80
79
###################################################################################################
81
80
# - cuco target ---------------------------------------------------------------------------------
@@ -84,7 +83,7 @@ add_library(cuco::cuco ALIAS cuco)
84
83
target_include_directories (cuco INTERFACE
85
84
INTERFACE $< BUILD_INTERFACE:${CUCO_SOURCE_DIR} /include>
86
85
$< INSTALL_INTERFACE:include> )
87
- target_link_libraries (cuco INTERFACE libcudacxx::libcudacxx CUDA::toolkit $< BUILD_INTERFACE:cuco::Thrust > )
86
+ target_link_libraries (cuco INTERFACE CCCL::CCCL CUDA::toolkit )
88
87
target_compile_features (cuco INTERFACE cxx_std_17 cuda_std_17 )
89
88
90
89
###################################################################################################
@@ -128,21 +127,13 @@ structures tailored for efficient use with GPUs.
128
127
129
128
]=] )
130
129
131
- set (code_string
132
- [=[
133
- if(NOT TARGET cuco::Thrust)
134
- thrust_create_target(cuco::Thrust FROM_OPTIONS)
135
- endif()
136
- ]=] )
137
-
138
130
# build directory cuco-config generation
139
131
rapids_export (
140
132
BUILD cuco
141
133
EXPORT_SET cuco-exports
142
134
GLOBAL_TARGETS cuco
143
135
NAMESPACE cuco::
144
- DOCUMENTATION doc_string
145
- FINAL_CODE_BLOCK code_string )
136
+ DOCUMENTATION doc_string )
146
137
147
138
if (INSTALL_CUCO )
148
139
install (DIRECTORY include /cuco/ DESTINATION include /cuco )
0 commit comments