2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, blas, lapack, mpi } :
|
2020-03-31 15:47:18 +01:00
|
|
|
|
2020-04-20 21:50:55 +01:00
|
|
|
assert (!blas.isILP64) && (!lapack.isILP64);
|
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
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-04-10 22:02:44 +01:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|