Skip to content

Commit

Permalink
Merge pull request #86132 from markuskowa/in-hpcg
Browse files Browse the repository at this point in the history
hpcg: init at 3.1
  • Loading branch information
bhipple committed May 2, 2020
2 parents 6b21541 + 9d5375f commit f4558a9
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
35 changes: 35 additions & 0 deletions pkgs/tools/misc/hpcg/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{ stdenv, fetchurl, openmpi } :

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;

buildInputs = [ openmpi ];

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 stdenv.lib; {
description = "HPC conjugate gradient benchmark";
homepage = "https://www.hpcg-benchmark.org";
platforms = platforms.linux;
license = licenses.bsd3;
maintainers = [ maintainers.markuskowa ];
};
}

2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19839,6 +19839,8 @@ in

howl = callPackage ../applications/editors/howl { };

hpcg = callPackage ../tools/misc/hpcg/default.nix { };

hpl = callPackage ../tools/misc/hpl { mpi = openmpi; };

hpmyroom = libsForQt5.callPackage ../applications/networking/hpmyroom { };
Expand Down

0 comments on commit f4558a9

Please sign in to comment.