mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-04-06 21:20:33 +02:00
* gnu/packages/machine-learning.scm (%python-pytorch-version): Update to 2.10.0. (%python-pytorch-src)[source]: Update hash. (python-pytorch)[arguments]: Fix build by including Utils.hpp. * gnu/packages/patches/python-pytorch-runpath.patch: Update for 2.10.0. * gnu/packages/patches/python-pytorch-system-libraries.patch: Update for 2.10.0. Change-Id: Ic579058f302d2d8face536ae9980f06854888615 Signed-off-by: Ludovic Courtès <ludo@gnu.org>
18 lines
658 B
Diff
18 lines
658 B
Diff
Libraries (such as 'libtorch_cpu.so') and executables (such as
|
|
'torch_shm_manager') get installed, quite surprisingly, to
|
|
'lib/pythonX.Y/site-packages/{bin,lib}'. Make sure RUNPATH matches that.
|
|
|
|
diff --git a/cmake/Dependencies.cmake b/cmake/Dependencies.cmake
|
|
index be45936a8..7b19e5359 100644
|
|
--- a/cmake/Dependencies.cmake
|
|
+++ b/cmake/Dependencies.cmake
|
|
@@ -4,7 +4,7 @@ if(APPLE)
|
|
set(CMAKE_MACOSX_RPATH ON)
|
|
set(_rpath_portable_origin "@loader_path")
|
|
else()
|
|
- set(_rpath_portable_origin $ORIGIN)
|
|
+ set(_rpath_portable_origin $ORIGIN/../lib)
|
|
endif(APPLE)
|
|
# Use separate rpaths during build and install phases
|
|
set(CMAKE_SKIP_BUILD_RPATH FALSE)
|