blob: 3ae5e7e1404a20a9cc1db921ca2f862b273ba05e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
{ lib, stdenv, fetchurl, mpi } :
stdenv.mkDerivation rec {
pname = "hpcg";
version = "3.1";
src = fetchurl {
url = "http://www.hpcg-benchmark.org/downloads/hpcg-${version}.tar.gz";
sha256 = "197lw2nwmzsmfsbvgvi8z7kj69n374kgfzzp8pkmk7mp2vkk991k";
};
dontConfigure = true;
enableParallelBuilding = true;
buildInputs = [ mpi ];
makeFlags = [ "arch=Linux_MPI" ];
installPhase = ''
mkdir -p $out/bin $out/share/hpcg
cp bin/xhpcg $out/bin
cp bin/hpcg.dat $out/share/hpcg
'';
meta = with lib; {
description = "HPC conjugate gradient benchmark";
homepage = "https://www.hpcg-benchmark.org";
platforms = platforms.linux;
license = licenses.bsd3;
maintainers = [ maintainers.markuskowa ];
mainProgram = "xhpcg";
};
}
|