2020-07-24 13:24:30 +02:00
|
|
|
{
|
|
|
|
pkgs
|
2020-09-16 12:22:55 +02:00
|
|
|
, callPackage
|
|
|
|
, callPackages
|
2020-07-24 13:24:30 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
2020-07-27 11:14:33 +02:00
|
|
|
|
2020-09-16 12:22:55 +02:00
|
|
|
garlic = {
|
2020-07-24 15:30:28 +02:00
|
|
|
|
2020-08-10 15:27:46 +02:00
|
|
|
# Load some helper functions to generate app variants
|
|
|
|
inherit (import ./gen.nix) genApps genApp genConfigs;
|
|
|
|
|
2020-07-24 15:30:28 +02:00
|
|
|
mpptest = callPackage ./mpptest { };
|
|
|
|
|
2020-07-31 18:47:33 +02:00
|
|
|
ppong = callPackage ./ppong {
|
2020-09-16 12:22:55 +02:00
|
|
|
mpi = pkgs.mpi;
|
2020-07-31 18:47:33 +02:00
|
|
|
};
|
2020-07-24 15:30:28 +02:00
|
|
|
|
2020-07-27 17:55:56 +02:00
|
|
|
nbody = callPackage ./nbody {
|
2020-09-16 12:22:55 +02:00
|
|
|
cc = pkgs.icc;
|
|
|
|
mpi = pkgs.impi;
|
|
|
|
tampi = pkgs.tampi;
|
2020-07-27 17:55:56 +02:00
|
|
|
gitBranch = "garlic/seq";
|
|
|
|
};
|
|
|
|
|
2020-09-02 17:07:09 +02:00
|
|
|
runWrappers = {
|
2020-09-21 14:34:08 +02:00
|
|
|
sbatch = callPackage ./stages/sbatch.nix { };
|
|
|
|
srun = callPackage ./stages/srun.nix { };
|
|
|
|
launch = callPackage ./stages/launcher.nix { };
|
|
|
|
control = callPackage ./stages/control.nix { };
|
|
|
|
nixsetup= callPackage ./stages/nix-setup.nix { };
|
|
|
|
argv = callPackage ./stages/argv.nix { };
|
|
|
|
statspy = callPackage ./stages/statspy.nix { };
|
|
|
|
extrae = callPackage ./stages/extrae.nix { };
|
|
|
|
stagen = callPackage ./stages/stagen.nix { };
|
2020-09-02 17:07:09 +02:00
|
|
|
};
|
2020-09-02 10:44:13 +02:00
|
|
|
|
|
|
|
# Perf is tied to a linux kernel specific version
|
2020-09-16 12:22:55 +02:00
|
|
|
linuxPackages = pkgs.linuxPackages_4_4;
|
2020-09-02 10:44:13 +02:00
|
|
|
perfWrapper = callPackage ./perf.nix {
|
2020-09-16 12:22:55 +02:00
|
|
|
perf = pkgs.linuxPackages.perf;
|
2020-09-02 10:44:13 +02:00
|
|
|
};
|
2020-07-29 18:38:39 +02:00
|
|
|
|
2020-07-27 11:14:33 +02:00
|
|
|
exp = {
|
2020-09-03 16:19:52 +02:00
|
|
|
noise = callPackage ./exp/noise.nix { };
|
2020-08-10 15:27:46 +02:00
|
|
|
nbody = {
|
2020-09-16 12:22:55 +02:00
|
|
|
bs = callPackage ./exp/nbody/bs.nix {
|
|
|
|
pkgs = pkgs // garlic;
|
|
|
|
};
|
2020-08-17 18:50:18 +02:00
|
|
|
mpi = callPackage ./exp/nbody/mpi.nix { };
|
2020-07-27 17:55:56 +02:00
|
|
|
};
|
2020-08-19 11:07:21 +02:00
|
|
|
osu = rec {
|
|
|
|
latency-internode = callPackage ./exp/osu/latency.nix { };
|
|
|
|
latency-intranode = callPackage ./exp/osu/latency.nix {
|
|
|
|
interNode = false;
|
|
|
|
};
|
|
|
|
latency = latency-internode;
|
2020-08-18 18:28:30 +02:00
|
|
|
};
|
2020-07-24 15:30:28 +02:00
|
|
|
};
|
2020-07-24 13:24:30 +02:00
|
|
|
};
|
2020-07-27 11:14:33 +02:00
|
|
|
|
2020-07-24 13:24:30 +02:00
|
|
|
in
|
|
|
|
garlic
|