Commit ee09c130 authored by Valentin Reis's avatar Valentin Reis
Browse files

Refactoring the simple application pinning.

parent 2245b5c3
{
"url": "https://xgitlab.cels.anl.gov/argo/applications/simple.git",
"rev": "a9bf641fca16aa01409f44b336d14c6c15edf7e2",
"date": "2018-10-31T18:51:02-05:00",
"sha256": "10y92ym3kx45cx43gwhhnj9qgh6mjjql3i5ky21rb45inc3v2j1b",
"fetchSubmodules": true
}
{ stdenv, fetchgit, zeromq, intel, gsl, libnrm, mpich2}:
{ stdenv, zeromq, intel, gsl, libnrm, mpich2}:
stdenv.mkDerivation {
name = "simple-benchmarks";
src = fetchgit {
url="https://xgitlab.cels.anl.gov/argo/benchmark-applications.git";
sha256="1cgjarl6xp99adywaqqz0n0wl75rl6vkrrmxjcb79cya1p7irgi8";
};
inherit src;
requiredSystemFeatures = [ "icc"];
......
{
"url": "https://xgitlab.cels.anl.gov/argo/applications/simple.git",
"rev": "a9bf641fca16aa01409f44b336d14c6c15edf7e2",
"date": "2018-10-31T18:51:02-05:00",
"sha256": "10y92ym3kx45cx43gwhhnj9qgh6mjjql3i5ky21rb45inc3v2j1b",
"fetchSubmodules": true
}
{ stdenv, fetchgit, mpich2, zeromq, libnrm }:
{ stdenv, src, fetchgit, mpich2, zeromq, libnrm }:
stdenv.mkDerivation {
inherit src;
name = "graph500";
src = fetchgit {
url="https://xgitlab.cels.anl.gov/argo/benchmark-applications.git";
sha256="1cgjarl6xp99adywaqqz0n0wl75rl6vkrrmxjcb79cya1p7irgi8";
};
buildInputs = [mpich2 zeromq libnrm];
......
{
"url": "https://xgitlab.cels.anl.gov/argo/containers.git",
"rev": "4fde2b8c65fb82e296bc82ecbbd4cdaff409cf85",
"date": "2017-12-20T10:04:24-06:00",
"sha256": "0rznc9r4s8slxh3m6s9l8r347lcn73rb1agk6llfb9x2a3xfsxjf",
"fetchSubmodules": true
}
{
"url": "https://xgitlab.cels.anl.gov/argo/containers.git",
"rev": "9be6830772f4f5d6b612660a4988e6cba02429bc",
"date": "2018-02-19T21:23:12+01:00",
"sha256": "1iqw6106ax3l5231bgp1myr99q58hp4nl4v2q4nnrmbllfh2vzhi",
"fetchSubmodules": true
}
#!/usr/bin/env bash
nix-prefetch-git https://xgitlab.cels.anl.gov/argo/benchmark-applications.git refs/heads/master > master.json
nix-prefetch-git https://xgitlab.cels.anl.gov/argo/benchmark-applications.git refs/heads/nix > nix.json
#!/usr/bin/env bash
nix-prefetch-git https://xgitlab.cels.anl.gov/argo/applications/simple.git refs/heads/master > dgemm_randomwalk.json
#!/usr/bin/env bash
nix-prefetch-git https://xgitlab.cels.anl.gov/argo/applications/simple.git refs/heads/master > graph500.json
......@@ -11,8 +11,10 @@
packagepins ? import ./pins.nix {inherit (pkgs) stdenv fetchgit fetchgitPrivate;}
}:
let
gitpin = f: fetchgit {inherit (stdenv.lib.importJSON f) url sha256 rev fetchSubmodules;};
compiler_path = "/opt/intel/compilers_and_libraries_2017.1.132/linux";
callPackage = pkgs.lib.callPackageWith pkgs;
callPackagePin = path : depset: pkgs.lib.callPackageWith pkgs "${path}.nix" (depset//{src= gitpin "${path}.json";});
pythonPackages = pkgs.python27Packages;
in rec {
#NRM components
......@@ -33,8 +35,8 @@ in rec {
qmcpack = callPackage applications/qmcpack {};
openmc = callPackage applications/openmc {};
stream = callPackage applications/stream {};
graph500 = callPackage applications/graph500 {};
simple = callPackage applications/simple {inherit intel libnrm;};
graph500 = callPackagePin "applications/simple/graph500" {};
simple = callPackage applications/simple/dgemm_randomwalk.nix {inherit intel libnrm;};
};
#Intel compilers
......
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