Add support in nix for mkl
This commit is contained in:
13
etc/nix/mkl.nix
Normal file
13
etc/nix/mkl.nix
Normal file
@@ -0,0 +1,13 @@
|
||||
{ pkgs, ...}:
|
||||
|
||||
{
|
||||
buildInputs = with pkgs; [
|
||||
mkl
|
||||
];
|
||||
|
||||
shellHook = ''
|
||||
export MKL_PATH=${pkgs.mkl}
|
||||
export LD_LIBRARY_PATH=$MKL_PATH:$LD_LIBRARY_PATH
|
||||
'';
|
||||
}
|
||||
|
||||
16
etc/nix/openblas.nix
Normal file
16
etc/nix/openblas.nix
Normal file
@@ -0,0 +1,16 @@
|
||||
{ pkgs, ...}:
|
||||
|
||||
{
|
||||
buildInputs = with pkgs; [
|
||||
openblas
|
||||
scalapack
|
||||
];
|
||||
|
||||
shellHook = ''
|
||||
export OPENBLAS_PATH=${pkgs.openblas}
|
||||
export SCALAPACK_PATH=${pkgs.scalapack}
|
||||
export LD_LIBRARY_PATH=${pkgs.scalapack}/lib:$LD_LIBRARY_PATH
|
||||
'';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user