magma: remove mklSupport flag
This now relies on the "blas" and "lapack" packages.
This commit is contained in:
parent
ff2f2644f8
commit
a6a502fca0
@ -1,8 +1,4 @@
|
|||||||
{ stdenv, fetchurl, cmake, gfortran, cudatoolkit, libpthreadstubs, lapack, blas
|
{ stdenv, fetchurl, cmake, gfortran, cudatoolkit, libpthreadstubs, lapack, blas }:
|
||||||
, mklSupport ? false, mkl ? null
|
|
||||||
}:
|
|
||||||
|
|
||||||
assert !mklSupport || mkl != null;
|
|
||||||
|
|
||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
|
|
||||||
@ -17,13 +13,10 @@ in stdenv.mkDerivation {
|
|||||||
name = "magma-${version}.tar.gz";
|
name = "magma-${version}.tar.gz";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ gfortran cudatoolkit libpthreadstubs cmake ]
|
buildInputs = [ gfortran cudatoolkit libpthreadstubs cmake lapack blas ];
|
||||||
++ (if mklSupport then [ mkl ] else [ lapack blas ]);
|
|
||||||
|
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
MKLROOT = optionalString mklSupport mkl;
|
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
export CC=${cudatoolkit.cc}/bin/gcc CXX=${cudatoolkit.cc}/bin/g++
|
export CC=${cudatoolkit.cc}/bin/gcc CXX=${cudatoolkit.cc}/bin/g++
|
||||||
'';
|
'';
|
||||||
|
Loading…
Reference in New Issue
Block a user