From dc9d775f88f21aac47537ec0ef71b4d0256389dd Mon Sep 17 00:00:00 2001 From: Alexander Smorkalov Date: Thu, 15 Sep 2022 16:15:52 +0300 Subject: [PATCH] Do not store full CuDNN version in cache to exclude inconsistency during reconfiguration. --- cmake/FindCUDNN.cmake | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/cmake/FindCUDNN.cmake b/cmake/FindCUDNN.cmake index 195781b957..df64db39e6 100644 --- a/cmake/FindCUDNN.cmake +++ b/cmake/FindCUDNN.cmake @@ -78,12 +78,7 @@ if(CUDNN_INCLUDE_DIR) string(REGEX MATCH "define CUDNN_PATCHLEVEL ([0-9]+)" _ "${CUDNN_H_CONTENTS}") set(CUDNN_VERSION_PATCH ${CMAKE_MATCH_1} CACHE INTERNAL "") - set(CUDNN_VERSION - "${CUDNN_VERSION_MAJOR}.${CUDNN_VERSION_MINOR}.${CUDNN_VERSION_PATCH}" - CACHE - STRING - "cuDNN version" - ) + set(CUDNN_VERSION "${CUDNN_VERSION_MAJOR}.${CUDNN_VERSION_MINOR}.${CUDNN_VERSION_PATCH}") unset(CUDNN_H_CONTENTS) endif()