From fd09b1c54945863ade0636a63d8ccd7603426f45 Mon Sep 17 00:00:00 2001 From: Sevag H Date: Fri, 20 Jan 2023 09:00:21 -0500 Subject: [PATCH] Make cutlass use static ctk (#1155) Cutlass links to the CTK in ways that cause problems for downstream pip wheel builds (especially in cugraph). This might help. Authors: - Sevag H (https://github.com/sevagh) Approvers: - Robert Maynard (https://github.com/robertmaynard) URL: https://github.com/rapidsai/raft/pull/1155 --- cpp/cmake/thirdparty/get_cutlass.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cpp/cmake/thirdparty/get_cutlass.cmake b/cpp/cmake/thirdparty/get_cutlass.cmake index 811a5466c3..3e02ce064e 100644 --- a/cpp/cmake/thirdparty/get_cutlass.cmake +++ b/cpp/cmake/thirdparty/get_cutlass.cmake @@ -30,6 +30,10 @@ function(find_and_configure_cutlass) CACHE BOOL "Disable CUTLASS to build with cuBLAS library." ) + if (CUDA_STATIC_RUNTIME) + set(CUDART_LIBRARY "${CUDA_cudart_static_LIBRARY}" CACHE FILEPATH "fixing cutlass cmake code" FORCE) + endif() + rapids_cpm_find( NvidiaCutlass ${PKG_VERSION} GLOBAL_TARGETS nvidia::cutlass::cutlass