From 959b7ac4f0a846d8f18df2b1206c0da7726c7c1f Mon Sep 17 00:00:00 2001 From: mrcangye Date: Tue, 13 Jun 2023 16:26:05 +0000 Subject: [PATCH] Increase download judgment. --- cmake/external/cudnn-frontend.cmake | 5 ++++- cmake/external/dirent.cmake | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/cmake/external/cudnn-frontend.cmake b/cmake/external/cudnn-frontend.cmake index cab8431d3abb2..3bc3897e48ac8 100644 --- a/cmake/external/cudnn-frontend.cmake +++ b/cmake/external/cudnn-frontend.cmake @@ -76,7 +76,10 @@ function(download_cudnn-frontend) endif() endfunction() -download_dirent() +if(NOT EXISTS ${CUDNN_FRONTEND_DOWNLOAD_DIR}/${CUDNN_FRONTEND_CACHE_FILENAME}) + message(STATUS "Local package ${CUDNN_FRONTEND_CACHE_FILENAME} not found, starting download.") + download_cudnn-frontend() +endif() ExternalProject_Add( extern_cudnn_frontend diff --git a/cmake/external/dirent.cmake b/cmake/external/dirent.cmake index 35287581363c6..582be6f7d231f 100644 --- a/cmake/external/dirent.cmake +++ b/cmake/external/dirent.cmake @@ -55,7 +55,10 @@ function(download_dirent) endif() endfunction() -download_dirent() +if(NOT EXISTS ${DIRENT_DOWNLOAD_DIR}/${DIRENT_CACHE_FILENAME}) + message(STATUS "Local package ${DIRENT_CACHE_FILENAME} not found, starting download.") + download_dirent() +endif() ExternalProject_Add( extern_dirent