2020-07-24 13:24:30 +02:00
|
|
|
{
|
|
|
|
pkgs
|
|
|
|
, bsc
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
callPackage = pkgs.lib.callPackageWith (pkgs // bsc // garlic);
|
|
|
|
callPackages = pkgs.lib.callPackagesWith (pkgs // bsc // garlic);
|
2020-07-27 11:14:33 +02:00
|
|
|
|
2020-07-24 13:24:30 +02:00
|
|
|
garlic = rec {
|
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 {
|
|
|
|
mpi = bsc.mpi;
|
|
|
|
};
|
2020-07-24 15:30:28 +02:00
|
|
|
|
2020-07-27 17:55:56 +02:00
|
|
|
nbody = callPackage ./nbody {
|
|
|
|
cc = pkgs.gcc7;
|
|
|
|
gitBranch = "garlic/seq";
|
|
|
|
};
|
|
|
|
|
2020-08-10 15:27:46 +02:00
|
|
|
sbatch = callPackage ./sbatch.nix { };
|
2020-08-10 18:25:53 +02:00
|
|
|
launcher = callPackage ./launcher.nix { };
|
2020-08-11 12:05:43 +02:00
|
|
|
control = callPackage ./control.nix { };
|
|
|
|
nixsetup = callPackage ./nix-setup.nix { };
|
2020-07-29 18:38:39 +02:00
|
|
|
|
2020-07-27 11:14:33 +02:00
|
|
|
exp = {
|
2020-08-10 15:27:46 +02:00
|
|
|
nbody = {
|
|
|
|
bs = callPackage ./exp/nbody/bs.nix {
|
|
|
|
inherit bsc;
|
|
|
|
};
|
2020-07-27 17:55:56 +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
|