From 5193413dcb7200c4ebab4c932006fa57e7349533 Mon Sep 17 00:00:00 2001 From: Nadezhda Ageeva Date: Thu, 27 Jul 2023 10:44:20 +0400 Subject: [PATCH] Test fix for windows debug build (#693) --- modules/nvidia_plugin/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/nvidia_plugin/CMakeLists.txt b/modules/nvidia_plugin/CMakeLists.txt index 53fa8af82..ab375affa 100644 --- a/modules/nvidia_plugin/CMakeLists.txt +++ b/modules/nvidia_plugin/CMakeLists.txt @@ -103,6 +103,11 @@ find_library(CUTENSOR_PATH get_filename_component(CUTENSOR_INCLUDE_DIR "${CUTENSOR_PATH}" DIRECTORY) get_filename_component(CUTENSOR_INCLUDE_DIR "${CUTENSOR_INCLUDE_DIR}/../../include" REALPATH) +if(WIN32) + string(REPLACE "-Zi" "-Z7" CMAKE_CUDA_FLAGS_DEBUG "${CMAKE_CUDA_FLAGS_DEBUG}") + message("-- [nvidia_gpu] CMAKE_CUDA_FLAGS_DEBUG ${CMAKE_CUDA_FLAGS_DEBUG}") +endif() + message("-- [nvidia_gpu] CUTENSOR_PATH ${CUTENSOR_PATH}") message("-- [nvidia_gpu] CUTENSOR_INCLUDE_DIR ${CUTENSOR_INCLUDE_DIR}") message("-- [nvidia_gpu] CUDNN_PATH ${CUDNN_PATH}")