From 6ba5179d718504d851da19e5a07482d29408f64c Mon Sep 17 00:00:00 2001 From: petingo Date: Tue, 29 Oct 2024 16:06:36 +0100 Subject: [PATCH 1/3] Update libTorch version --- assets/libtorch-cxx11-abi-shared-with-deps-2.0.1+cpu.zip | 3 --- assets/libtorch-cxx11-abi-shared-with-deps-2.5.0+cpu.zip | 3 +++ deps/Torch.cmake | 9 ++++++++- 3 files changed, 11 insertions(+), 4 deletions(-) delete mode 100644 assets/libtorch-cxx11-abi-shared-with-deps-2.0.1+cpu.zip create mode 100644 assets/libtorch-cxx11-abi-shared-with-deps-2.5.0+cpu.zip diff --git a/assets/libtorch-cxx11-abi-shared-with-deps-2.0.1+cpu.zip b/assets/libtorch-cxx11-abi-shared-with-deps-2.0.1+cpu.zip deleted file mode 100644 index 06660ce5..00000000 --- a/assets/libtorch-cxx11-abi-shared-with-deps-2.0.1+cpu.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2de79972edb9b8b6aebe782e61a090c28cadd2d773a5ca3205f835fb3876e53d -size 181781261 diff --git a/assets/libtorch-cxx11-abi-shared-with-deps-2.5.0+cpu.zip b/assets/libtorch-cxx11-abi-shared-with-deps-2.5.0+cpu.zip new file mode 100644 index 00000000..4a9ba575 --- /dev/null +++ b/assets/libtorch-cxx11-abi-shared-with-deps-2.5.0+cpu.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:848ae52a422bf0bf94fd2ba2b048bb6c3e416f385cef390640760bd0baf7a40e +size 169497682 diff --git a/deps/Torch.cmake b/deps/Torch.cmake index 270718c7..dd31f8c7 100644 --- a/deps/Torch.cmake +++ b/deps/Torch.cmake @@ -1,11 +1,18 @@ # libtorch +# download from the internet (old version) # download_external_project(libtorch # URL "https://download.pytorch.org/libtorch/cpu/libtorch-cxx11-abi-shared-with-deps-2.0.1%2Bcpu.zip" # PATCH libtorch-optional-c++17.patch # THIRD_PARTY_DIR deps) +# download from the internet (new version) +# download_external_project(libtorch +# URL "https://download.pytorch.org/libtorch/cpu/libtorch-cxx11-abi-shared-with-deps-2.5.0%2Bcpu.zip" +# THIRD_PARTY_DIR deps) + +# using local file download_external_project(libtorch - URL "file://${PROJECT_SOURCE_DIR}/assets/libtorch-cxx11-abi-shared-with-deps-2.0.1+cpu.zip" + URL "file://${PROJECT_SOURCE_DIR}/assets/libtorch-cxx11-abi-shared-with-deps-2.5.0%2Bcpu.zip" ) list(APPEND CMAKE_PREFIX_PATH "${CMAKE_CURRENT_SOURCE_DIR}/deps/libtorch") From 7db3152f8b01b3d2c553a7254895b08df2f3e60e Mon Sep 17 00:00:00 2001 From: petingo Date: Wed, 30 Oct 2024 09:44:33 +0100 Subject: [PATCH 2/3] Fix wrong file name --- deps/Torch.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deps/Torch.cmake b/deps/Torch.cmake index dd31f8c7..77d756ff 100644 --- a/deps/Torch.cmake +++ b/deps/Torch.cmake @@ -12,7 +12,7 @@ # using local file download_external_project(libtorch - URL "file://${PROJECT_SOURCE_DIR}/assets/libtorch-cxx11-abi-shared-with-deps-2.5.0%2Bcpu.zip" + URL "file://${PROJECT_SOURCE_DIR}/assets/libtorch-cxx11-abi-shared-with-deps-2.5.0+cpu.zip" ) list(APPEND CMAKE_PREFIX_PATH "${CMAKE_CURRENT_SOURCE_DIR}/deps/libtorch") From 3d3fd4914884af5c391919d7e7c00037f8aaf476 Mon Sep 17 00:00:00 2001 From: petingo Date: Wed, 30 Oct 2024 10:22:18 +0100 Subject: [PATCH 3/3] Update .gitattributes --- .gitattributes | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitattributes b/.gitattributes index f9c9a41a..547c17b3 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1 +1 @@ -assets/libtorch-cxx11-abi-shared-with-deps-2.0.1+cpu.zip filter=lfs diff=lfs merge=lfs -text +assets/libtorch-cxx11-abi-shared-with-deps-2.5.0+cpu.zip filter=lfs diff=lfs merge=lfs -text