2021-01-10 12:40:19 +00:00
|
|
|
{ lib, stdenv, fetchurl, mpi } :
|
2020-04-27 14:41:40 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "hpcg";
|
|
|
|
version = "3.1";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.hpcg-benchmark.org/downloads/${pname}-${version}.tar.gz";
|
|
|
|
sha256 = "197lw2nwmzsmfsbvgvi8z7kj69n374kgfzzp8pkmk7mp2vkk991k";
|
|
|
|
};
|
|
|
|
|
|
|
|
dontConfigure = true;
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-01-10 12:40:19 +00:00
|
|
|
buildInputs = [ mpi ];
|
2020-04-27 14:41:40 +00:00
|
|
|
|
|
|
|
makeFlags = [ "arch=Linux_MPI" ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin $out/share/hpcg
|
|
|
|
|
|
|
|
cp bin/xhpcg $out/bin
|
|
|
|
cp bin/hpcg.dat $out/share/hpcg
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-27 14:41:40 +00:00
|
|
|
description = "HPC conjugate gradient benchmark";
|
|
|
|
homepage = "https://www.hpcg-benchmark.org";
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.markuskowa ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|