2020-03-31 16:47:18 +02:00
|
|
|
{ stdenv, fetchurl, blas, lapack, mpi } :
|
|
|
|
|
2020-04-20 22:50:55 +02:00
|
|
|
assert (!blas.isILP64) && (!lapack.isILP64);
|
2019-04-10 23:02:44 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "hpl";
|
2019-04-10 23:02:44 +02:00
|
|
|
version = "2.3";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 14:41:18 +02:00
|
|
|
url = "http://www.netlib.org/benchmark/hpl/${pname}-${version}.tar.gz";
|
2019-04-10 23:02:44 +02: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 16:47:18 +02:00
|
|
|
buildInputs = [ blas lapack mpi ];
|
2019-04-10 23:02:44 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Portable Implementation of the Linpack Benchmark for Distributed-Memory Computers";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://www.netlib.org/benchmark/hpl/";
|
2019-04-10 23:02:44 +02:00
|
|
|
platforms = platforms.unix;
|
|
|
|
license = licenses.bsdOriginal;
|
|
|
|
maintainers = [ maintainers.markuskowa ];
|
|
|
|
};
|
|
|
|
}
|