2020-06-08 18:01:33 +02:00
|
|
|
{ pkgs ? import <nixpkgs> {} }:
|
|
|
|
|
|
|
|
let
|
|
|
|
inherit (pkgs.lib) callPackageWith;
|
|
|
|
inherit (pkgs.lib) callPackagesWith;
|
|
|
|
callPackage = callPackageWith (pkgs // self.bsc);
|
|
|
|
callPackages = callPackagesWith (pkgs // self.bsc);
|
|
|
|
|
|
|
|
self.bsc = rec {
|
2020-06-11 19:04:16 +02:00
|
|
|
|
|
|
|
# Load the default implementation
|
2020-06-09 18:21:02 +02:00
|
|
|
#mpi = pkgs.mpich;
|
2020-06-11 19:04:16 +02:00
|
|
|
#mpi = pkgs.openmpi;
|
2020-07-20 11:59:58 +02:00
|
|
|
#mpi = openmpi; # Our OpenMPI variant
|
|
|
|
mpi = intel-mpi;
|
2020-06-09 18:21:02 +02:00
|
|
|
|
2020-06-11 19:04:16 +02:00
|
|
|
# Load the default compiler
|
2020-06-09 18:21:02 +02:00
|
|
|
#stdenv = pkgs.gcc10Stdenv;
|
2020-07-20 11:59:58 +02:00
|
|
|
stdenv = pkgs.gcc9Stdenv;
|
2020-06-30 12:19:36 +02:00
|
|
|
#stdenv = pkgs.gcc7Stdenv;
|
2020-07-20 11:59:58 +02:00
|
|
|
#stdenv = pkgs.llvmPackages_10.stdenv;
|
2020-06-30 12:19:36 +02:00
|
|
|
#stdenv = pkgs.llvmPackages_9.stdenv;
|
|
|
|
#stdenv = pkgs.llvmPackages_8.stdenv;
|
|
|
|
#stdenv = pkgs.llvmPackages_7.stdenv;
|
2020-06-08 18:01:33 +02:00
|
|
|
|
2020-06-15 11:54:22 +02:00
|
|
|
binutils = pkgs.binutils;
|
|
|
|
coreutils = pkgs.coreutils;
|
2020-07-20 11:59:58 +02:00
|
|
|
gcc = stdenv.cc;
|
|
|
|
|
|
|
|
nanos6 = nanos6-git;
|
2020-06-15 11:54:22 +02:00
|
|
|
|
2020-06-25 20:43:35 +02:00
|
|
|
# --------------------------------------------------------- #
|
|
|
|
# BSC Packages
|
|
|
|
# --------------------------------------------------------- #
|
|
|
|
|
|
|
|
# Custom OpenMPI with mpi_cxx enabled for TAMPI
|
|
|
|
openmpi = callPackage ./bsc/openmpi/default.nix {
|
|
|
|
enableCxx = true;
|
|
|
|
};
|
|
|
|
|
2020-07-29 18:38:27 +02:00
|
|
|
# ParaStation MPI
|
|
|
|
pscom = callPackage ./bsc/parastation/pscom.nix { };
|
|
|
|
psmpi = callPackage ./bsc/parastation/psmpi.nix { };
|
|
|
|
|
2020-07-01 10:25:33 +02:00
|
|
|
# Default Intel MPI version is 2019 (the last one)
|
2020-07-10 13:17:45 +02:00
|
|
|
impi = intel-mpi;
|
2020-07-01 10:25:33 +02:00
|
|
|
intel-mpi = intel-mpi-2019;
|
2020-06-29 20:46:30 +02:00
|
|
|
intel-mpi-2019 = 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;
|
|
|
|
};
|
|
|
|
|
2020-07-02 15:32:52 +02:00
|
|
|
# By default we use Intel compiler 2020 update 1
|
|
|
|
icc-unwrapped = icc2020-unwrapped;
|
|
|
|
icc2020-unwrapped = callPackage ./bsc/intel-compiler/icc2020.nix {
|
2020-07-10 13:42:55 +02:00
|
|
|
intel-mpi = intel-mpi-2019;
|
2020-07-01 17:58:29 +02:00
|
|
|
};
|
|
|
|
|
2020-07-02 15:32:52 +02:00
|
|
|
# A wrapper script that puts all the flags and environment vars properly and
|
|
|
|
# calls the intel compiler binary
|
2020-07-01 17:58:29 +02:00
|
|
|
icc = callPackage bsc/intel-compiler/default.nix {
|
2020-07-10 13:42:55 +02:00
|
|
|
inherit icc-unwrapped intel-license;
|
2020-07-01 17:58:29 +02:00
|
|
|
};
|
|
|
|
|
2020-07-10 13:42:55 +02:00
|
|
|
intel-license = callPackage bsc/intel-compiler/license.nix {
|
2020-07-01 10:25:33 +02:00
|
|
|
};
|
2020-06-29 20:46:30 +02:00
|
|
|
|
2020-06-15 11:54:22 +02:00
|
|
|
fftw = callPackage ./bsc/fftw/default.nix {
|
|
|
|
mpi = mpi;
|
|
|
|
};
|
|
|
|
|
2020-06-10 19:35:11 +02:00
|
|
|
extrae = callPackage ./bsc/extrae/default.nix {
|
2020-06-09 18:21:02 +02:00
|
|
|
mpi = mpi;
|
2020-06-08 18:01:33 +02:00
|
|
|
};
|
|
|
|
|
2020-06-10 19:35:11 +02:00
|
|
|
tampi = callPackage ./bsc/tampi/default.nix {
|
2020-06-09 18:21:02 +02:00
|
|
|
mpi = mpi;
|
|
|
|
};
|
|
|
|
|
2020-06-29 17:32:30 +02:00
|
|
|
mcxx = callPackage ./bsc/mcxx/default.nix {
|
|
|
|
};
|
|
|
|
|
2020-07-20 11:59:58 +02:00
|
|
|
mcxx-rarias = callPackage ./bsc/mcxx/rarias.nix {
|
|
|
|
};
|
|
|
|
|
|
|
|
nanos6-latest = callPackage ./bsc/nanos6/default.nix {
|
2020-06-10 18:55:30 +02:00
|
|
|
extrae = extrae;
|
|
|
|
};
|
|
|
|
|
|
|
|
nanos6-git = callPackage ./bsc/nanos6/git.nix {
|
2020-06-09 18:21:02 +02:00
|
|
|
extrae = extrae;
|
2020-06-08 18:01:33 +02:00
|
|
|
};
|
|
|
|
|
2020-06-30 12:19:36 +02:00
|
|
|
vtk = callPackage ./bsc/vtk/default.nix {
|
|
|
|
mpi = mpi;
|
|
|
|
inherit (pkgs.xorg) libX11 xorgproto libXt;
|
|
|
|
};
|
|
|
|
|
2020-06-17 13:00:49 +02:00
|
|
|
dummy = callPackage ./bsc/dummy/default.nix {
|
|
|
|
};
|
|
|
|
|
|
|
|
clang-ompss2-unwrapped = callPackage ./bsc/llvm-ompss2/clang.nix {
|
|
|
|
stdenv = pkgs.llvmPackages_10.stdenv;
|
2020-07-06 11:15:55 +02:00
|
|
|
enableDebug = false;
|
2020-06-17 13:00:49 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
clang-ompss2 = callPackage bsc/llvm-ompss2/default.nix {
|
|
|
|
inherit clang-ompss2-unwrapped;
|
|
|
|
};
|
|
|
|
|
|
|
|
stdenv-nanos6 = pkgs.clangStdenv.override {
|
2020-06-15 11:54:22 +02:00
|
|
|
cc = clang-ompss2;
|
|
|
|
};
|
2020-06-11 19:04:16 +02:00
|
|
|
|
2020-06-29 16:53:37 +02:00
|
|
|
cpic = callPackage ./bsc/apps/cpic/default.nix {
|
2020-06-17 13:00:49 +02:00
|
|
|
stdenv = stdenv-nanos6;
|
2020-06-17 13:26:14 +02:00
|
|
|
inherit mpi tampi;
|
2020-06-11 19:04:16 +02:00
|
|
|
};
|
|
|
|
|
2020-07-24 11:33:05 +02:00
|
|
|
mpptest = callPackage ./bsc/mpptest/default.nix {
|
|
|
|
};
|
|
|
|
|
2020-06-29 16:42:25 +02:00
|
|
|
# Apps for Garlic
|
|
|
|
nbody = callPackage ./bsc/apps/nbody/default.nix {
|
|
|
|
stdenv = pkgs.gcc9Stdenv;
|
2020-06-30 12:19:36 +02:00
|
|
|
mpi = intel-mpi;
|
|
|
|
tampi = tampi;
|
|
|
|
};
|
|
|
|
|
2020-07-27 13:17:08 +02:00
|
|
|
heat = callPackage ./bsc/apps/heat/default.nix {
|
2020-07-08 13:33:45 +02:00
|
|
|
stdenv = pkgs.gcc7Stdenv;
|
|
|
|
mpi = intel-mpi;
|
|
|
|
tampi = tampi;
|
|
|
|
};
|
|
|
|
|
2020-06-30 12:19:36 +02:00
|
|
|
saiph = callPackage ./bsc/apps/saiph/default.nix {
|
|
|
|
stdenv = stdenv-nanos6;
|
|
|
|
mpi = intel-mpi;
|
2020-06-29 20:46:30 +02:00
|
|
|
tampi = tampi;
|
2020-06-30 12:19:36 +02:00
|
|
|
inherit vtk;
|
|
|
|
boost = pkgs.boost;
|
2020-06-29 16:42:25 +02:00
|
|
|
};
|
|
|
|
|
2020-07-10 16:49:39 +02:00
|
|
|
creams = callPackage ./bsc/apps/creams/default.nix {
|
|
|
|
stdenv = pkgs.gcc9Stdenv;
|
|
|
|
mpi = intel-mpi;
|
|
|
|
tampi = tampi.override {
|
|
|
|
mpi = intel-mpi;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2020-07-13 14:09:20 +02:00
|
|
|
lulesh = callPackage ./bsc/apps/lulesh/default.nix {
|
|
|
|
mpi = intel-mpi;
|
|
|
|
};
|
|
|
|
|
2020-07-13 16:46:44 +02:00
|
|
|
hpcg = callPackage ./bsc/apps/hpcg/default.nix {
|
|
|
|
};
|
|
|
|
|
2020-07-20 12:04:15 +02:00
|
|
|
hpccg = callPackage ./bsc/apps/hpccg/default.nix {
|
|
|
|
};
|
|
|
|
|
2020-07-20 12:58:54 +02:00
|
|
|
fwi = callPackage ./bsc/apps/fwi/default.nix {
|
|
|
|
};
|
|
|
|
|
2020-07-24 13:24:30 +02:00
|
|
|
garlic = callPackage ./bsc/garlic/default.nix {
|
|
|
|
pkgs = pkgs;
|
|
|
|
bsc = self.bsc;
|
2020-07-20 17:31:07 +02:00
|
|
|
};
|
|
|
|
|
2020-06-25 21:02:49 +02:00
|
|
|
# Patched nix for deep cluster
|
2020-06-25 20:43:35 +02:00
|
|
|
inherit (callPackage ./bsc/nix/default.nix {
|
2020-06-25 15:13:20 +02:00
|
|
|
storeDir = "/nix/store";
|
|
|
|
stateDir = "/nix/var";
|
|
|
|
boehmgc = pkgs.boehmgc.override { enableLargeConfig = true; };
|
|
|
|
})
|
2020-06-25 20:43:35 +02:00
|
|
|
nix
|
|
|
|
nixUnstable
|
|
|
|
nixFlakes;
|
2020-06-25 21:02:49 +02:00
|
|
|
|
|
|
|
test = {
|
|
|
|
chroot = callPackage ./test/chroot.nix { };
|
|
|
|
|
|
|
|
internet = callPackage ./test/security/internet.nix { };
|
|
|
|
|
|
|
|
clang-ompss2 = callPackage ./test/compilers/clang-ompss2.nix {
|
|
|
|
stdenv = stdenv-nanos6;
|
|
|
|
inherit clang-ompss2;
|
|
|
|
};
|
|
|
|
};
|
2020-06-09 18:21:02 +02:00
|
|
|
};
|
2020-06-17 13:00:49 +02:00
|
|
|
|
2020-06-08 18:01:33 +02:00
|
|
|
in pkgs // self
|