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
|
||||
, mklSupport ? false, mkl ? null
|
||||
}:
|
||||
|
||||
assert !mklSupport || mkl != null;
|
||||
{ stdenv, fetchurl, cmake, gfortran, cudatoolkit, libpthreadstubs, lapack, blas }:
|
||||
|
||||
with stdenv.lib;
|
||||
|
||||
@ -17,13 +13,10 @@ in stdenv.mkDerivation {
|
||||
name = "magma-${version}.tar.gz";
|
||||
};
|
||||
|
||||
buildInputs = [ gfortran cudatoolkit libpthreadstubs cmake ]
|
||||
++ (if mklSupport then [ mkl ] else [ lapack blas ]);
|
||||
buildInputs = [ gfortran cudatoolkit libpthreadstubs cmake lapack blas ];
|
||||
|
||||
doCheck = false;
|
||||
|
||||
MKLROOT = optionalString mklSupport mkl;
|
||||
|
||||
preConfigure = ''
|
||||
export CC=${cudatoolkit.cc}/bin/gcc CXX=${cudatoolkit.cc}/bin/g++
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user