From 9fc152a2e92745d54046ccb5e0b686311cca05ba Mon Sep 17 00:00:00 2001 From: Vyas Ramasubramani Date: Tue, 31 Dec 2024 09:15:53 -0800 Subject: [PATCH] Update for raft logger changes (#4835) This PR updates cugraph to use raft's updated logger implementation using [rapids-logger](https://github.com/rapidsai/rapids-logger). This PR requires https://github.com/rapidsai/raft/pull/2530. Contributes to https://github.com/rapidsai/build-planning/issues/104 Authors: - Vyas Ramasubramani (https://github.com/vyasr) Approvers: - Bradley Dice (https://github.com/bdice) - James Lamb (https://github.com/jameslamb) - Brad Rees (https://github.com/BradReesWork) URL: https://github.com/rapidsai/cugraph/pull/4835 --- cpp/CMakeLists.txt | 1 + cpp/tests/CMakeLists.txt | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt index 8ecab358dd..ad30b3769d 100644 --- a/cpp/CMakeLists.txt +++ b/cpp/CMakeLists.txt @@ -488,6 +488,7 @@ target_link_libraries(cugraph ${COMPILED_RAFT_LIB} cuco::cuco rmm::rmm_logger_impl + raft::raft_logger_impl ) ################################################################################ diff --git a/cpp/tests/CMakeLists.txt b/cpp/tests/CMakeLists.txt index 44963f9151..4cc9f2d94b 100644 --- a/cpp/tests/CMakeLists.txt +++ b/cpp/tests/CMakeLists.txt @@ -169,6 +169,7 @@ function(ConfigureTest CMAKE_TEST_NAME) cugraphtestutil GTest::gtest GTest::gtest_main + test_logger_impls ) set_target_properties( ${CMAKE_TEST_NAME} @@ -199,6 +200,7 @@ function(ConfigureTestMG CMAKE_TEST_NAME) GTest::gtest_main NCCL::NCCL MPI::MPI_CXX + test_logger_impls ) set_target_properties( ${CMAKE_TEST_NAME} @@ -250,6 +252,7 @@ function(ConfigureCTest CMAKE_TEST_NAME) cugraph_c_testutil GTest::gtest GTest::gtest_main + test_logger_impls ) set_target_properties( ${CMAKE_TEST_NAME} @@ -282,6 +285,7 @@ function(ConfigureCTestMG CMAKE_TEST_NAME) GTest::gtest_main NCCL::NCCL MPI::MPI_CXX + test_logger_impls ) set_target_properties( ${CMAKE_TEST_NAME} @@ -310,6 +314,10 @@ function(ConfigureCTestMG CMAKE_TEST_NAME) endfunction() +add_library(test_logger_impls OBJECT) +target_link_libraries(test_logger_impls PRIVATE raft::raft_logger_impl) + + ################################################################################################### ### test sources ################################################################################## ###################################################################################################