Open RuRo opened 9 months ago
Upd: still failing on latest nixos-unstable
(68c9ed8bbed9dfce253cc91560bf9043297ef2fe).
Additionally pinging the maintainers of mkl
, blas
and lapack
: @bhipple @ttuegel
FYI, I was able to successfully build torch
with mkl
by applying the following patch:
diff --git a/cmake/public/mkl.cmake b/cmake/public/mkl.cmake
index 68bf1b9..4963f22 100644
--- a/cmake/public/mkl.cmake
+++ b/cmake/public/mkl.cmake
@@ -15,9 +15,3 @@ foreach(MKL_LIB IN LISTS MKL_LIBRARIES)
endif()
endif()
endforeach()
-
-# TODO: This is a hack, it will not pick up architecture dependent
-# MKL libraries correctly; see https://github.com/pytorch/pytorch/issues/73008
-set_property(
- TARGET caffe2::mkl PROPERTY INTERFACE_LINK_DIRECTORIES
- ${MKL_ROOT}/lib ${MKL_ROOT}/lib/intel64 ${MKL_ROOT}/lib/intel64_win ${MKL_ROOT}/lib/win-x64)
Not sure, if this issue could be worked around in some other way, so I opened an issue with upstream. See, https://github.com/pytorch/pytorch/issues/133823.
You may also need to apply PR #334941 that fixes the MKL build of magma.
Describe the bug
torch
build fails whenmkl
is enabled.Steps To Reproduce
Expected behavior
Build succeeds.
Additional context
The overlay that enables MKL is written in accordance with the nixpkgs manual.
Notify maintainers
@teh @thoughtpolice @tscholak
Priorities
Add a :+1: reaction to issues you find important.