Commit e04f3a2f authored by Valentin Reis's avatar Valentin Reis

added graph500

parent bd597a85
......@@ -30,6 +30,8 @@ in rec {
qmcpack = callPackage ./qmcpack {};
openmc = callPackage ./openmc {};
stream = callPackage ./stream {};
graph500 = callPackage ./graph500 {};
simple = callPackage ./simple {};
};
}
......
{ stdenv, fetchgit, mpich2, zeromq }:
stdenv.mkDerivation {
name = "graph500";
src = fetchgit {
url="https://xgitlab.cels.anl.gov/argo/progress-benchmarks.git";
sha256="0wpxb25bfry116rzjb8c66fpxqibrn1dby4xpfsbrnvbhhirck9z";
};
buildInputs = [mpich2 zeromq];
buildPhase = ''
cd graph500/src
make
'';
installPhase = ''
mkdir -p $out/bin
cp graph500_reference_bfs $out/bin/graph500_reference_bfs
cp graph500_reference_bfs_sssp $out/bin/graph500_reference_bfs_sssp
'';
}
{ stdenv, fetchgit, zeromq
, useICC ? false
}:
stdenv.mkDerivation {
name = "graph500";
src = fetchgit {
url="https://xgitlab.cels.anl.gov/argo/progress-benchmarks.git";
sha256="0wpxb25bfry116rzjb8c66fpxqibrn1dby4xpfsbrnvbhhirck9z";
};
buildInputs = [ zeromq];
buildPhase = ''
cd simple
make CC=${if useICC then "icc" else "gcc"}
'';
installPhase = ''
mkdir -p $out/bin
cp graph500_reference_bfs $out/bin/graph500_reference_bfs
cp graph500_reference_bfs_sssp $out/bin/graph500_reference_bfs_sssp
'';
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment