From 0190a04c06bbccdb5e5c36202ce16ba49e1da489 Mon Sep 17 00:00:00 2001 From: Vyas Ramasubramani Date: Tue, 26 Nov 2024 19:24:20 +0000 Subject: [PATCH] Adapt to rmm logger changes --- cpp/CMakeLists.txt | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt index 780f6f8581..5ea9cdf802 100644 --- a/cpp/CMakeLists.txt +++ b/cpp/CMakeLists.txt @@ -180,7 +180,10 @@ target_include_directories( ) # Keep RAFT as lightweight as possible. Only CUDA libs and rmm should be used in global target. -target_link_libraries(raft INTERFACE rmm::rmm cuco::cuco nvidia::cutlass::cutlass CCCL::CCCL) +target_link_libraries( + raft INTERFACE rmm::rmm rmm::rmm_logger $ cuco::cuco + nvidia::cutlass::cutlass CCCL::CCCL +) target_compile_features(raft INTERFACE cxx_std_17 $) target_compile_options( @@ -288,8 +291,10 @@ if(RAFT_COMPILE_LIBRARY) "$<$:${RAFT_CUDA_FLAGS}>" ) - add_library(raft_lib SHARED $) - add_library(raft_lib_static STATIC $) + # Make sure not to add the rmm logger twice since it will be brought in as an interface source by + # the rmm::rmm_logger_impl target. + add_library(raft_lib SHARED $,EXCLUDE,rmm.*logger>) + add_library(raft_lib_static STATIC $,EXCLUDE,rmm.*logger>) set_target_properties( raft_lib raft_lib_static