From c8b990127a650837c731c327aeff84e3ce56a118 Mon Sep 17 00:00:00 2001 From: Robert Maynard Date: Tue, 9 Jan 2024 14:42:33 -0500 Subject: [PATCH] Only cufft offers a static_nocallback version of the library (#5703) Authors: - Robert Maynard (https://github.com/robertmaynard) Approvers: - Bradley Dice (https://github.com/bdice) URL: https://github.com/rapidsai/cuml/pull/5703 --- cpp/CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt index 029f7a7405..0f5cf2a1b1 100644 --- a/cpp/CMakeLists.txt +++ b/cpp/CMakeLists.txt @@ -141,8 +141,10 @@ endif() # - compiler options --------------------------------------------------------- set(_ctk_static_suffix "") +set(_ctk_fft_static_suffix "") if(CUDA_STATIC_RUNTIME) - set(_ctk_static_suffix "_static_nocallback") + set(_ctk_static_suffix "_static") + set(_ctk_fft_static_suffix "_static_nocallback") endif() if (NOT DISABLE_OPENMP) @@ -612,7 +614,7 @@ if(BUILD_CUML_CPP_LIBRARY) list(APPEND _cuml_cpp_private_libs raft::raft $ - $<$:CUDA::cufft${_ctk_static_suffix}> + $<$:CUDA::cufft${_ctk_fft_static_suffix}> ${TREELITE_LIBS} ${OpenMP_CXX_LIB_NAMES} $<$,$>:NCCL::NCCL>