blas,lapack: provide symlink for libmkl_rt.so

This is needed for numpy to detect mkl correctly.
This commit is contained in:
Matthew Bauer 2020-04-20 23:32:03 -05:00
parent 607522c78d
commit 0caa375b4c
2 changed files with 2 additions and 0 deletions

View file

@ -135,5 +135,6 @@ EOF
'' + stdenv.lib.optionalString (blasImplementation == "mkl") '' '' + stdenv.lib.optionalString (blasImplementation == "mkl") ''
mkdir -p $out/nix-support mkdir -p $out/nix-support
echo 'export MKL_INTERFACE_LAYER=${lib.optionalString isILP64 "I"}LP64,GNU' > $out/nix-support/setup-hook 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}
''); '');
} }

View file

@ -109,5 +109,6 @@ EOF
'' + stdenv.lib.optionalString (lapackImplementation == "mkl") '' '' + stdenv.lib.optionalString (lapackImplementation == "mkl") ''
mkdir -p $out/nix-support mkdir -p $out/nix-support
echo 'export MKL_INTERFACE_LAYER=${lib.optionalString isILP64 "I"}LP64,GNU' > $out/nix-support/setup-hook 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}
''); '');
} }