@@ -175,14 +175,14 @@ if (DEFINED ENV{LIBTORCH_ROOT})
175175else ()
176176 include (FetchContent)
177177 if (CUDAToolkit_VERSION VERSION_GREATER_EQUAL 12.8)
178- # download libtorch 2.7.0 with cuda 12.8 from pytorch.org
179- set (LIBTORCH_URL "https://download.pytorch.org/libtorch/cu128/libtorch-cxx11-abi-shared-with-deps-2.7.0 %2Bcu128.zip" )
178+ # download libtorch 2.7.1 with cuda 12.8 from pytorch.org
179+ set (LIBTORCH_URL "https://download.pytorch.org/libtorch/cu128/libtorch-cxx11-abi-shared-with-deps-2.7.1 %2Bcu128.zip" )
180180 elseif (CUDAToolkit_VERSION VERSION_GREATER_EQUAL 12.6)
181- # download libtorch 2.7.0 with cuda 12.6 from pytorch.org
182- set (LIBTORCH_URL "https://download.pytorch.org/libtorch/cu126/libtorch-cxx11-abi-shared-with-deps-2.7.0 %2Bcu126.zip" )
181+ # download libtorch 2.7.1 with cuda 12.6 from pytorch.org
182+ set (LIBTORCH_URL "https://download.pytorch.org/libtorch/cu126/libtorch-cxx11-abi-shared-with-deps-2.7.1 %2Bcu126.zip" )
183183 elseif (CUDAToolkit_VERSION VERSION_GREATER_EQUAL 11.8)
184- # download libtorch 2.7.0 with cuda 11.8 from pytorch.org
185- set (LIBTORCH_URL "https://download.pytorch.org/libtorch/cu118/libtorch-cxx11-abi-shared-with-deps-2.7.0 %2Bcu118.zip" )
184+ # download libtorch 2.7.1 with cuda 11.8 from pytorch.org
185+ set (LIBTORCH_URL "https://download.pytorch.org/libtorch/cu118/libtorch-cxx11-abi-shared-with-deps-2.7.1 %2Bcu118.zip" )
186186 else ()
187187 # error out if cuda version is not supported
188188 message (FATAL_ERROR "Unsupported CUDA version: ${CUDAToolkit_VERSION} " )
@@ -201,7 +201,7 @@ else()
201201 FetchContent_MakeAvailable(libtorch)
202202
203203 find_package (Torch REQUIRED PATHS ${libtorch_SOURCE_DIR} NO_DEFAULT_PATH)
204- message (STATUS "Downloading and using libtorch 2.7.0 for cuda ${CUDA_VERSION} at ${libtorch_SOURCE_DIR} " )
204+ message (STATUS "Downloading and using libtorch 2.7.1 for cuda ${CUDA_VERSION} at ${libtorch_SOURCE_DIR} " )
205205endif ()
206206
207207# carry over torch flags to the rest of the project
0 commit comments