Skip to content

Commit

Permalink
[cmake] fix cusparseltonnxruntime update error
Browse files Browse the repository at this point in the history
  • Loading branch information
gouzil committed Jun 11, 2023
1 parent a6b9120 commit c8df0eb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmake/external/cusparselt.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ if(LOCAL_CUSPARSELT_LIB_ZIP)
file(MD5 ${CUSPARSELT_DOWNLOAD_DIR}/${CUSPARSELT_CACHE_FILENAME}
CUSPARSELT_MD5)
if(NOT CUSPARSELT_MD5 EQUAL CUSPARSELT_URL_MD5)
# clean build file
file(REMOVE_RECURSE ${CUSPARSELT_PREFIX_DIR})
file(REMOVE_RECURSE ${CUSPARSELT_INSTALL_DIR})
download_cusparselt()
endif()
else()
Expand Down
3 changes: 3 additions & 0 deletions cmake/external/onnxruntime.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,9 @@ if(LOCAL_ONNXRUNTIME_LIB_ZIP)
file(MD5 ${ONNXRUNTIME_DOWNLOAD_DIR}/${ONNXRUNTIME_CACHE_FILENAME}
ONNXRUNTIME_MD5)
if(NOT ONNXRUNTIME_MD5 EQUAL ONNXRUNTIME_URL_MD5)
# clean build file
file(REMOVE_RECURSE ${ONNXRUNTIME_PREFIX_DIR})
file(REMOVE_RECURSE ${ONNXRUNTIME_INSTALL_DIR})
download_onnxruntime()
endif()
else()
Expand Down

0 comments on commit c8df0eb

Please sign in to comment.