default.nix 549 Bytes
Newer Older
Valentin Reis's avatar
Valentin Reis committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ 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
  '';
}