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