From 03e666e839eff48992e66662945dac2f2bcd4c0c Mon Sep 17 00:00:00 2001 From: Paul Taylor Date: Thu, 24 Jun 2021 08:56:22 -0500 Subject: [PATCH] Add `cuco::cuco` to list of linked libraries (#279) Adds `cuco::cuco` to `target_link_libraries` because it's used by https://github.com/rapidsai/raft/blob/branch-21.08/cpp/include/raft/sparse/distance/coo_spmv_strategies/hash_strategy.cuh#L21 Authors: - Paul Taylor (https://github.com/trxcllnt) Approvers: - Corey J. Nolet (https://github.com/cjnolet) URL: https://github.com/rapidsai/raft/pull/279 --- cpp/CMakeLists.txt | 1 + cpp/cmake/thirdparty/get_cuco.cmake | 10 ++++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt index f0e9a9a54e..1d60071d7e 100644 --- a/cpp/CMakeLists.txt +++ b/cpp/CMakeLists.txt @@ -131,6 +131,7 @@ INTERFACE CUDA::cudart CUDA::cusparse rmm::rmm + cuco::cuco ) target_compile_features(raft INTERFACE cxx_std_17 $) diff --git a/cpp/cmake/thirdparty/get_cuco.cmake b/cpp/cmake/thirdparty/get_cuco.cmake index 94ce6abf7d..ac5cdc7ac9 100644 --- a/cpp/cmake/thirdparty/get_cuco.cmake +++ b/cpp/cmake/thirdparty/get_cuco.cmake @@ -16,11 +16,17 @@ function(find_and_configure_cuco VERSION) + if(TARGET cuco::cuco) + return() + endif() + rapids_cpm_find(cuco ${VERSION} GLOBAL_TARGETS cuco cuco::cuco + BUILD_EXPORT_SET raft-exports + INSTALL_EXPORT_SET raft-exports CPM_ARGS - GIT_REPOSITORY https://github.com/NVIDIA/cuCollections.git - GIT_TAG e5e2abe55152608ef449ecf162a1ef52ded19801 + GIT_REPOSITORY https://github.com/trxcllnt/cuCollections.git + GIT_TAG dev OPTIONS "BUILD_TESTS OFF" "BUILD_BENCHMARKS OFF" "BUILD_EXAMPLES OFF"