Skip to content

Commit

Permalink
Increase download judgment.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcangye committed Jun 13, 2023
1 parent 4b42d80 commit 959b7ac
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion cmake/external/cudnn-frontend.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion cmake/external/dirent.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 959b7ac

Please sign in to comment.