2020-06-08 18:01:33 +02:00
|
|
|
{ pkgs ? import <nixpkgs> {} }:
|
|
|
|
|
|
|
|
let
|
|
|
|
inherit (pkgs.lib) callPackageWith;
|
|
|
|
inherit (pkgs.lib) callPackagesWith;
|
|
|
|
inherit (pkgs) pythonPackages;
|
|
|
|
inherit (pkgs) perlPackages;
|
|
|
|
inherit (pkgs) buildPerlPackage;
|
|
|
|
callPackage = callPackageWith (pkgs // self.bsc);
|
|
|
|
callPackage_i686 = callPackageWith (pkgs.pkgsi686Linux // self.bsc);
|
|
|
|
callPackages = callPackagesWith (pkgs // self.bsc);
|
|
|
|
|
|
|
|
self.bsc = rec {
|
2020-06-11 19:04:16 +02:00
|
|
|
|
|
|
|
# Custom OpenMPI with mpi_cxx enabled for TAMPI
|
|
|
|
openmpi = callPackage ./bsc/openmpi/default.nix {
|
|
|
|
enableCxx = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
# 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;
|
|
|
|
mpi = openmpi; # Our OpenMPI variant
|
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.gcc7Stdenv;
|
|
|
|
#stdenv = pkgs.gcc9Stdenv;
|
|
|
|
#stdenv = pkgs.gcc10Stdenv;
|
|
|
|
stdenv = pkgs.clangStdenv;
|
2020-06-08 18:01:33 +02:00
|
|
|
|
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-10 18:55:30 +02:00
|
|
|
nanos6 = callPackage ./bsc/nanos6/default.nix {
|
|
|
|
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-10 19:35:11 +02:00
|
|
|
llvm-ompss2 = callPackage ./bsc/llvm-ompss2/default.nix { };
|
2020-06-11 19:04:16 +02:00
|
|
|
|
|
|
|
cpic = callPackage ./bsc/cpic/default.nix {
|
|
|
|
mpi = mpi;
|
|
|
|
nanos6 = nanos6-git;
|
|
|
|
llvm-ompss2 = llvm-ompss2;
|
|
|
|
};
|
|
|
|
|
|
|
|
dummy = callPackage ./bsc/dummy/default.nix { };
|
|
|
|
|
2020-06-09 18:21:02 +02:00
|
|
|
};
|
2020-06-08 18:01:33 +02:00
|
|
|
in pkgs // self
|