magma: remove mklSupport flag

This now relies on the "blas" and "lapack" packages.
This commit is contained in:
Matthew Bauer 2020-04-20 15:51:34 -05:00
parent ff2f2644f8
commit a6a502fca0

View file

@ -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++
'';