bscpkgs/overlay.nix

278 lines
8.3 KiB
Nix
Raw Normal View History

2020-09-16 12:22:55 +02:00
self: /* Future last stage */
super: /* Previous stage */
let
inherit (self.lib) callPackageWith;
inherit (self.lib) callPackagesWith;
callPackage = callPackageWith (self // self.bsc);
2020-09-21 14:34:08 +02:00
# --------------------------------------------------------- #
# BSC Packages
# --------------------------------------------------------- #
2020-09-16 12:22:55 +02:00
bsc = {
# Default MPI implementation to use. Will be overwritten by the
# experiments.
mpi = self.bsc.impi;
2020-09-16 12:22:55 +02:00
perf = callPackage ./bsc/perf/default.nix {
kernel = self.linuxPackages_4_9.kernel;
systemtap = self.linuxPackages_4_9.systemtap;
};
# ParaStation MPI
pscom = callPackage ./bsc/parastation/pscom.nix { };
psmpi = callPackage ./bsc/parastation/psmpi.nix { };
osumb = callPackage ./bsc/osu/default.nix { };
mpich = callPackage ./bsc/mpich/default.nix { };
mpichDebug = self.mpich.override { enableDebug = true; };
2020-09-28 13:01:31 +02:00
# Updated version of libpsm2: TODO push upstream.
#libpsm2 = callPackage ./bsc/libpsm2/default.nix { };
2020-09-16 12:22:55 +02:00
# Default Intel MPI version is 2019 (the last one)
impi = self.bsc.intelMpi;
intelMpi = self.bsc.intelMpi2019;
intelMpi2019 = callPackage ./bsc/intel-mpi/default.nix {
# Intel MPI provides a debug version of the MPI library, but
# by default we use the release variant for performance
enableDebug = false;
};
# By default we use Intel compiler 2020 update 1
iccUnwrapped = self.bsc.icc2020Unwrapped;
icc2020Unwrapped = callPackage ./bsc/intel-compiler/icc2020.nix {
intel-mpi = self.bsc.intelMpi;
};
# A wrapper script that puts all the flags and environment vars properly and
# calls the intel compiler binary
icc = callPackage ./bsc/intel-compiler/default.nix {
iccUnwrapped = self.bsc.iccUnwrapped;
intelLicense = self.bsc.intelLicense;
};
intelLicense = callPackage ./bsc/intel-compiler/license.nix { };
pmix2 = callPackage ./bsc/pmix/pmix2.nix { };
slurm17 = callPackage ./bsc/slurm/default.nix {
pmix = self.bsc.pmix2;
};
slurm17-libpmi2 = callPackage ./bsc/slurm/pmi2.nix {
pmix = self.bsc.pmix2;
};
openmpi-mn4 = callPackage ./bsc/openmpi/default.nix {
pmix = self.bsc.pmix2;
pmi2 = self.bsc.slurm17-libpmi2;
enableCxx = true;
};
openmpi = self.bsc.openmpi-mn4;
2020-09-21 14:34:08 +02:00
fftw = callPackage ./bsc/fftw/default.nix { };
2020-09-16 12:22:55 +02:00
2020-09-21 14:34:08 +02:00
extrae = callPackage ./bsc/extrae/default.nix { };
2020-09-16 12:22:55 +02:00
2020-09-30 09:35:23 +02:00
tampi = self.bsc.tampiRelease;
tampiRelease = callPackage ./bsc/tampi/default.nix { };
tampiGit = callPackage ./bsc/tampi/git.nix { };
2020-09-21 14:34:08 +02:00
mcxxGit = callPackage ./bsc/mcxx/default.nix {
bison = self.bison_3_5;
2020-09-16 12:22:55 +02:00
};
2020-09-21 14:34:08 +02:00
mcxxRarias = callPackage ./bsc/mcxx/rarias.nix {
bison = self.bison_3_5;
};
2020-09-16 12:22:55 +02:00
2020-09-21 14:34:08 +02:00
mcxx = self.bsc.mcxxGit;
2020-09-16 12:22:55 +02:00
# Use nanos6 git by default
2020-09-21 17:30:24 +02:00
nanos6 = self.bsc.nanos6Git;
nanos6Latest = callPackage ./bsc/nanos6/default.nix { };
nanos6Git = callPackage ./bsc/nanos6/git.nix { };
2020-09-16 12:22:55 +02:00
vtk = callPackage ./bsc/vtk/default.nix {
inherit (self.xorg) libX11 xorgproto libXt;
};
dummy = callPackage ./bsc/dummy/default.nix { };
2020-09-21 17:30:24 +02:00
clangOmpss2Unwrapped = callPackage ./bsc/llvm-ompss2/clang.nix {
2020-09-16 12:22:55 +02:00
stdenv = self.llvmPackages_10.stdenv;
enableDebug = false;
};
2020-09-21 17:30:24 +02:00
clangOmpss2 = callPackage bsc/llvm-ompss2/default.nix {
clangOmpss2Unwrapped = self.bsc.clangOmpss2Unwrapped;
2020-09-16 12:22:55 +02:00
};
stdenvOmpss2 = self.clangStdenv.override {
2020-09-21 17:30:24 +02:00
cc = self.bsc.clangOmpss2;
2020-09-16 12:22:55 +02:00
};
cpic = callPackage ./bsc/apps/cpic/default.nix {
stdenv = self.bsc.stdenvOmpss2;
mpi = self.bsc.mpi;
tampi = self.bsc.tampi;
};
mpptest = callPackage ./bsc/mpptest/default.nix { };
garlic = {
# Load some helper functions to generate app variants
2020-09-21 14:34:08 +02:00
inherit (import ./garlic/gen.nix) genApps genApp genConfigs;
2020-09-16 12:22:55 +02:00
2020-09-22 17:41:40 +02:00
# Override the hardening flags and parallel build by default (TODO)
#mkDerivation = callPackage ./garlic/mkDerivation.nix { };
# Apps for Garlic
# heat = callPackage ./garlic/heat {
# stdenv = pkgs.gcc7Stdenv;
# mpi = intel-mpi;
# tampi = tampi;
# };
#
creams = callPackage ./garlic/creams {
gnuDef = self.gfortran10 ; # Default GNU compiler version
intelDef = self.bsc.icc ; # Default Intel compiler version
gitBranch = "garlic/mpi+send+seq";
cc = self.bsc.icc; # self.bsc.icc OR self.gfortran10;
mpi = self.bsc.mpi; # self.bsc.mpi OR self.bsc.openmpi-mn4;
};
creamsInput = callPackage ./garlic/creams/input.nix {
gitBranch = "garlic/mpi+send+seq";
};
2020-09-22 17:41:40 +02:00
# lulesh = callPackage ./garlic/lulesh {
# mpi = intel-mpi;
# };
#
# hpcg = callPackage ./garlic/hpcg { };
#
# hpccg = callPackage ./garlic/hpccg { };
#
# fwi = callPackage ./garlic/fwi { };
2020-09-16 12:22:55 +02:00
2020-09-21 14:34:08 +02:00
nbody = callPackage ./garlic/nbody {
2020-09-16 12:22:55 +02:00
cc = self.bsc.icc;
2020-09-21 14:34:08 +02:00
mpi = self.bsc.mpi;
2020-09-16 12:22:55 +02:00
tampi = self.bsc.tampi;
2020-09-21 14:34:08 +02:00
mcxx = self.bsc.mcxx;
2020-09-16 12:22:55 +02:00
gitBranch = "garlic/seq";
};
2020-09-21 17:30:24 +02:00
saiph = callPackage ./garlic/saiph {
cc = self.bsc.clangOmpss2;
2020-09-21 17:30:24 +02:00
};
2020-09-21 14:34:08 +02:00
# Execution wrappers
2020-09-16 12:22:55 +02:00
runWrappers = {
2020-09-21 14:34:08 +02:00
sbatch = callPackage ./garlic/stages/sbatch.nix { };
srun = callPackage ./garlic/stages/srun.nix { };
launch = callPackage ./garlic/stages/launcher.nix { };
control = callPackage ./garlic/stages/control.nix { };
nixsetup = callPackage ./garlic/stages/nix-setup.nix { };
argv = callPackage ./garlic/stages/argv.nix { };
statspy = callPackage ./garlic/stages/statspy.nix { };
extrae = callPackage ./garlic/stages/extrae.nix { };
stagen = callPackage ./garlic/stages/stagen.nix { };
perf = callPackage ./garlic/stages/perf.nix { };
2020-09-22 17:41:40 +02:00
broom = callPackage ./garlic/stages/broom.nix { };
envRecord = callPackage ./garlic/stages/envRecord.nix { };
2020-09-28 13:00:59 +02:00
valgrind = callPackage ./garlic/stages/valgrind.nix { };
2020-09-16 12:22:55 +02:00
};
2020-09-22 17:41:40 +02:00
# Tests (move to bsc ?)
mpptest = callPackage ./garlic/mpptest { };
ppong = callPackage ./garlic/ppong {
mpi = self.bsc.mpi;
};
2020-09-16 12:22:55 +02:00
2020-10-02 11:58:04 +02:00
# Post processing tools
hist = callPackage ./garlic/postprocess/hist { };
2020-09-16 12:22:55 +02:00
exp = {
2020-09-21 14:34:08 +02:00
noise = callPackage ./garlic/exp/noise.nix { };
2020-09-16 12:22:55 +02:00
nbody = {
2020-09-21 14:34:08 +02:00
bs = callPackage ./garlic/exp/nbody/bs.nix {
pkgs = self // self.bsc.garlic;
nixpkgs = import <nixpkgs>;
genApp = self.bsc.garlic.genApp;
genConfigs = self.bsc.garlic.genConfigs;
runWrappers = self.bsc.garlic.runWrappers;
};
tampi = callPackage ./garlic/exp/nbody/tampi.nix {
2020-09-16 12:22:55 +02:00
pkgs = self // self.bsc.garlic;
nixpkgs = import <nixpkgs>;
genApp = self.bsc.garlic.genApp;
genConfigs = self.bsc.garlic.genConfigs;
runWrappers = self.bsc.garlic.runWrappers;
};
# mpi = callPackage ./bsc/garlic/exp/nbody/mpi.nix { };
};
2020-09-21 17:30:24 +02:00
saiph = {
numcomm = callPackage ./garlic/exp/saiph/numcomm.nix {
pkgs = self // self.bsc.garlic;
nixpkgs = import <nixpkgs>;
genApp = self.bsc.garlic.genApp;
genConfigs = self.bsc.garlic.genConfigs;
runWrappers = self.bsc.garlic.runWrappers;
};
};
creamsSS = {
nohybrid = callPackage ./garlic/exp/creams/SS+nohybrid.nix {
pkgs = self // self.bsc.garlic;
nixpkgs = import <nixpkgs>;
genApp = self.bsc.garlic.genApp;
genConfigs = self.bsc.garlic.genConfigs;
runWrappers = self.bsc.garlic.runWrappers;
};
hybrid = callPackage ./garlic/exp/creams/SS+hybrid.nix {
pkgs = self // self.bsc.garlic;
nixpkgs = import <nixpkgs>;
genApp = self.bsc.garlic.genApp;
genConfigs = self.bsc.garlic.genConfigs;
runWrappers = self.bsc.garlic.runWrappers;
};
};
2020-09-16 12:22:55 +02:00
osu = rec {
2020-09-21 14:34:08 +02:00
latency-internode = callPackage ./garlic/exp/osu/latency.nix { };
latency-intranode = callPackage ./garlic/exp/osu/latency.nix {
2020-09-16 12:22:55 +02:00
interNode = false;
};
latency = latency-internode;
};
};
};
};
in
{
bsc = bsc;
2020-09-21 14:34:08 +02:00
# Alias
garlic = bsc.garlic;
# Alias
exp = bsc.garlic.exp;
2020-09-16 12:22:55 +02:00
}