Skip to content

Commit 2962169

Browse files
authored
Update to CCCL 2.2.0. (#2049)
This PR updates RAFT to CCCL 2.2.0. Do not merge until all of RAPIDS is ready to update. Depends on #2048. Replaces #1464. Authors: - Bradley Dice (https://github.com/bdice) Approvers: - Vyas Ramasubramani (https://github.com/vyasr) - Robert Maynard (https://github.com/robertmaynard) URL: #2049
1 parent 1beb556 commit 2962169

File tree

2 files changed

+8
-21
lines changed

2 files changed

+8
-21
lines changed

cpp/CMakeLists.txt

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,8 @@ include(cmake/modules/ConfigureCUDA.cmake)
177177
rapids_cpm_init()
178178

179179
if(NOT BUILD_CPU_ONLY)
180-
# thrust before rmm/cuco so we get the right version of thrust/cub
181-
include(cmake/thirdparty/get_thrust.cmake)
180+
# CCCL before rmm/cuco so we get the right version of CCCL
181+
include(cmake/thirdparty/get_cccl.cmake)
182182
include(cmake/thirdparty/get_rmm.cmake)
183183
include(cmake/thirdparty/get_cutlass.cmake)
184184

@@ -206,7 +206,7 @@ target_include_directories(
206206

207207
if(NOT BUILD_CPU_ONLY)
208208
# Keep RAFT as lightweight as possible. Only CUDA libs and rmm should be used in global target.
209-
target_link_libraries(raft INTERFACE rmm::rmm cuco::cuco nvidia::cutlass::cutlass raft::Thrust)
209+
target_link_libraries(raft INTERFACE rmm::rmm cuco::cuco nvidia::cutlass::cutlass CCCL::CCCL)
210210
endif()
211211

212212
target_compile_features(raft INTERFACE cxx_std_17 $<BUILD_INTERFACE:cuda_std_17>)
@@ -628,16 +628,6 @@ Imported Targets:
628628

629629
set(code_string ${nvtx_export_string})
630630

631-
string(
632-
APPEND
633-
code_string
634-
[=[
635-
if(NOT TARGET raft::Thrust)
636-
thrust_create_target(raft::Thrust FROM_OPTIONS)
637-
endif()
638-
]=]
639-
)
640-
641631
string(
642632
APPEND
643633
code_string

cpp/cmake/thirdparty/get_thrust.cmake renamed to cpp/cmake/thirdparty/get_cccl.cmake

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,10 @@
1212
# the License.
1313
# =============================================================================
1414

15-
# Use CPM to find or clone thrust
16-
function(find_and_configure_thrust)
17-
include(${rapids-cmake-dir}/cpm/thrust.cmake)
18-
19-
rapids_cpm_thrust( NAMESPACE raft
20-
BUILD_EXPORT_SET raft-exports
21-
INSTALL_EXPORT_SET raft-exports)
15+
# Use CPM to find or clone CCCL
16+
function(find_and_configure_cccl)
17+
include(${rapids-cmake-dir}/cpm/cccl.cmake)
18+
rapids_cpm_cccl(BUILD_EXPORT_SET raft-exports INSTALL_EXPORT_SET raft-exports)
2219
endfunction()
2320

24-
find_and_configure_thrust()
21+
find_and_configure_cccl()

0 commit comments

Comments
 (0)