From 6d728720d6cc0d223ef1aa0bb55e830c24abaff1 Mon Sep 17 00:00:00 2001 From: Tamas Bela Feher Date: Fri, 18 Nov 2022 12:54:04 +0100 Subject: [PATCH] Suppres ptxas stack size warning in Debug mode (#1033) PR #939 introduced CUTLASS dependency. When compiled in debug mode, this leads to the following error: ``` ptxas error : Stack size for entry function '_ZN12raft_cutlass6KernelINS_...' cannot be statically determined ``` This would be normally just a warning, but we treat warnings as errors. This PR disables the warning in Debug mode. Authors: - Tamas Bela Feher (https://github.com/tfeher) Approvers: - Corey J. Nolet (https://github.com/cjnolet) URL: https://github.com/rapidsai/raft/pull/1033 --- cpp/cmake/modules/ConfigureCUDA.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/cpp/cmake/modules/ConfigureCUDA.cmake b/cpp/cmake/modules/ConfigureCUDA.cmake index 9b029a5242..5e68ca5bc4 100644 --- a/cpp/cmake/modules/ConfigureCUDA.cmake +++ b/cpp/cmake/modules/ConfigureCUDA.cmake @@ -47,4 +47,5 @@ endif() if(CMAKE_BUILD_TYPE MATCHES Debug) message(VERBOSE "RAFT: Building with debugging flags") list(APPEND RAFT_CUDA_FLAGS -G -Xcompiler=-rdynamic) + list(APPEND RAFT_CUDA_FLAGS -Xptxas --suppress-stack-size-warning) endif()