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