Merge pull request #22521 from asmorkalov/as:cuddn_version_non_cache

Do not store full CuDNN version in cache to exclude inconsistency duкing reconfiguration
pull/22526/head
Alexander Smorkalov 2 years ago committed by GitHub
commit 819e5b19b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      cmake/FindCUDNN.cmake

@ -78,12 +78,7 @@ if(CUDNN_INCLUDE_DIR)
string(REGEX MATCH "define CUDNN_PATCHLEVEL ([0-9]+)" _ "${CUDNN_H_CONTENTS}") string(REGEX MATCH "define CUDNN_PATCHLEVEL ([0-9]+)" _ "${CUDNN_H_CONTENTS}")
set(CUDNN_VERSION_PATCH ${CMAKE_MATCH_1} CACHE INTERNAL "") set(CUDNN_VERSION_PATCH ${CMAKE_MATCH_1} CACHE INTERNAL "")
set(CUDNN_VERSION set(CUDNN_VERSION "${CUDNN_VERSION_MAJOR}.${CUDNN_VERSION_MINOR}.${CUDNN_VERSION_PATCH}")
"${CUDNN_VERSION_MAJOR}.${CUDNN_VERSION_MINOR}.${CUDNN_VERSION_PATCH}"
CACHE
STRING
"cuDNN version"
)
unset(CUDNN_H_CONTENTS) unset(CUDNN_H_CONTENTS)
endif() endif()

Loading…
Cancel
Save