@@ -196,25 +196,25 @@ if (DEFINED ENV{LIBTORCH_ROOT})
196196else ()
197197 include (FetchContent)
198198 if (CUDAToolkit_VERSION VERSION_GREATER_EQUAL 12.4)
199- # download libtorch 2.5.1 with cuda 12.4 from pytorch.org
199+ # download libtorch 2.6.0 with cuda 12.4 from pytorch.org
200200 if (USE_CXX11_ABI)
201- set (LIBTORCH_URL "https://download.pytorch.org/libtorch/cu124/libtorch-cxx11-abi-shared-with-deps-2.5.1 %2Bcu124.zip" )
201+ set (LIBTORCH_URL "https://download.pytorch.org/libtorch/cu124/libtorch-cxx11-abi-shared-with-deps-2.6.0 %2Bcu124.zip" )
202202 else ()
203- set (LIBTORCH_URL "https://download.pytorch.org/libtorch/cu124/libtorch-shared-with-deps-2.5.1 %2Bcu124.zip" )
203+ set (LIBTORCH_URL "https://download.pytorch.org/libtorch/cu124/libtorch-shared-with-deps-2.6.0 %2Bcu124.zip" )
204204 endif ()
205205 elseif (CUDAToolkit_VERSION VERSION_GREATER_EQUAL 12.1)
206- # download libtorch 2.5.1 with cuda 12.1 from pytorch.org
206+ # download libtorch 2.6.0 with cuda 12.1 from pytorch.org
207207 if (USE_CXX11_ABI)
208- set (LIBTORCH_URL "https://download.pytorch.org/libtorch/cu121/libtorch-cxx11-abi-shared-with-deps-2.5.1 %2Bcu121.zip" )
208+ set (LIBTORCH_URL "https://download.pytorch.org/libtorch/cu121/libtorch-cxx11-abi-shared-with-deps-2.6.0 %2Bcu121.zip" )
209209 else ()
210- set (LIBTORCH_URL "https://download.pytorch.org/libtorch/cu121/libtorch-shared-with-deps-2.5.1 %2Bcu121.zip" )
210+ set (LIBTORCH_URL "https://download.pytorch.org/libtorch/cu121/libtorch-shared-with-deps-2.6.0 %2Bcu121.zip" )
211211 endif ()
212212 elseif (CUDAToolkit_VERSION VERSION_GREATER_EQUAL 11.8)
213- # download libtorch 2.5.1 with cuda 11.8 from pytorch.org
213+ # download libtorch 2.6.0 with cuda 11.8 from pytorch.org
214214 if (USE_CXX11_ABI)
215- set (LIBTORCH_URL "https://download.pytorch.org/libtorch/cu118/libtorch-cxx11-abi-shared-with-deps-2.5.1 %2Bcu118.zip" )
215+ set (LIBTORCH_URL "https://download.pytorch.org/libtorch/cu118/libtorch-cxx11-abi-shared-with-deps-2.6.0 %2Bcu118.zip" )
216216 else ()
217- set (LIBTORCH_URL "https://download.pytorch.org/libtorch/cu118/libtorch-shared-with-deps-2.5.1 %2Bcu118.zip" )
217+ set (LIBTORCH_URL "https://download.pytorch.org/libtorch/cu118/libtorch-shared-with-deps-2.6.0 %2Bcu118.zip" )
218218 endif ()
219219 else ()
220220 # error out if cuda version is not supported
@@ -234,7 +234,7 @@ else()
234234 FetchContent_MakeAvailable(libtorch)
235235
236236 find_package (Torch REQUIRED PATHS ${libtorch_SOURCE_DIR} NO_DEFAULT_PATH)
237- message (STATUS "Downloading and using libtorch 2.5.1 for cuda ${CUDA_VERSION} at ${libtorch_SOURCE_DIR} " )
237+ message (STATUS "Downloading and using libtorch 2.6.0 for cuda ${CUDA_VERSION} at ${libtorch_SOURCE_DIR} " )
238238endif ()
239239
240240# check if USE_CXX11_ABI is set correctly
0 commit comments