2020-03-31 15:47:18 +01:00
|
|
|
{ stdenv, fetchurl, blas, lapack, mpi } :
|
|
|
|
|
|
|
|
assert (!blas.is64bit) && (!lapack.is64bit);
|
2019-04-10 22:02:44 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "hpl";
|
2019-04-10 22:02:44 +01:00
|
|
|
version = "2.3";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "http://www.netlib.org/benchmark/hpl/${pname}-${version}.tar.gz";
|
2019-04-10 22:02:44 +01:00
|
|
|
sha256 = "0c18c7fzlqxifz1bf3izil0bczv3a7nsv0dn6winy3ik49yw3i9j";
|
|
|
|
};
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
# only contains the static lib
|
|
|
|
rm -r $out/lib
|
|
|
|
|
|
|
|
install -D testing/ptest/HPL.dat $out/share/hpl/HPL.dat
|
|
|
|
'';
|
|
|
|
|
2020-03-31 15:47:18 +01:00
|
|
|
buildInputs = [ blas lapack mpi ];
|
2019-04-10 22:02:44 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Portable Implementation of the Linpack Benchmark for Distributed-Memory Computers";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://www.netlib.org/benchmark/hpl/";
|
2019-04-10 22:02:44 +01:00
|
|
|
platforms = platforms.unix;
|
|
|
|
license = licenses.bsdOriginal;
|
|
|
|
maintainers = [ maintainers.markuskowa ];
|
|
|
|
};
|
|
|
|
}
|