Skip to content

Commit

Permalink
Merge pull request #24 from ibois-epfl/update-libtorch
Browse files Browse the repository at this point in the history
Update libTorch version
  • Loading branch information
9and3 authored Oct 30, 2024
2 parents 41d536c + 3d3fd49 commit a2b8d8c
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -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
3 changes: 0 additions & 3 deletions assets/libtorch-cxx11-abi-shared-with-deps-2.0.1+cpu.zip

This file was deleted.

3 changes: 3 additions & 0 deletions assets/libtorch-cxx11-abi-shared-with-deps-2.5.0+cpu.zip
Git LFS file not shown
9 changes: 8 additions & 1 deletion deps/Torch.cmake
Original file line number Diff line number Diff line change
@@ -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+cpu.zip"
)

list(APPEND CMAKE_PREFIX_PATH "${CMAKE_CURRENT_SOURCE_DIR}/deps/libtorch")
Expand Down

0 comments on commit a2b8d8c

Please sign in to comment.