blas,lapack: provide symlink for libmkl_rt.so
This is needed for numpy to detect mkl correctly.
This commit is contained in:
parent
607522c78d
commit
0caa375b4c
2 changed files with 2 additions and 0 deletions
|
@ -135,5 +135,6 @@ EOF
|
|||
'' + stdenv.lib.optionalString (blasImplementation == "mkl") ''
|
||||
mkdir -p $out/nix-support
|
||||
echo 'export MKL_INTERFACE_LAYER=${lib.optionalString isILP64 "I"}LP64,GNU' > $out/nix-support/setup-hook
|
||||
ln -s $out/lib/libblas${canonicalExtension} $out/lib/libmkl_rt${stdenv.hostPlatform.extensions.sharedLibrary}
|
||||
'');
|
||||
}
|
||||
|
|
|
@ -109,5 +109,6 @@ EOF
|
|||
'' + stdenv.lib.optionalString (lapackImplementation == "mkl") ''
|
||||
mkdir -p $out/nix-support
|
||||
echo 'export MKL_INTERFACE_LAYER=${lib.optionalString isILP64 "I"}LP64,GNU' > $out/nix-support/setup-hook
|
||||
ln -s $out/lib/liblapack${canonicalExtension} $out/lib/libmkl_rt${stdenv.hostPlatform.extensions.sharedLibrary}
|
||||
'');
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue