bscpkgs/default.nix

159 lines
4.0 KiB
Nix
Raw Normal View History

2020-06-08 18:01:33 +02:00
{ pkgs ? import <nixpkgs> {} }:
let
inherit (pkgs.lib) callPackageWith;
inherit (pkgs.lib) callPackagesWith;
2020-06-17 13:00:49 +02:00
#callPackage = callPackageWith (pkgs);
2020-06-08 18:01:33 +02:00
callPackage = callPackageWith (pkgs // 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-15 11:54:22 +02:00
binutils = pkgs.binutils;
coreutils = pkgs.coreutils;
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-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-17 13:00:49 +02:00
#
# clang-ompss2 = import ./bsc/cc-wrapper/default.nix {
## inherit stdenv binutils coreutils ;
## stdenv = bsc.stdenv;
# coreutils = pkgs.coreutils;
# bintools = pkgs.binutils;
# gnugrep = pkgs.gnugrep;
# stdenvNoCC = pkgs.stdenvNoCC;
# libc = pkgs.glibc;
# nativeTools = false;
# nativeLibc = false;
# cc = clang-ompss2-unwrapped;
# };
2020-06-15 11:54:22 +02:00
2020-06-17 13:00:49 +02:00
2020-06-15 11:54:22 +02:00
# gcc = lib.makeOverridable (import ./bsc/cc-wrapper/default.nix) {
# nativeTools = false;
# nativeLibc = false;
# isGNU = true;
# buildPackages = {
# inherit (prevStage) stdenv;
# };
# cc = prevStage.gcc-unwrapped;
# bintools = self.binutils;
# libc = getLibc self;
# inherit (self) stdenvNoCC coreutils gnugrep;
# shell = self.bash + "/bin/bash";
# };
#stdenv = stdenvClangOmpss;
# WrappedICC = import ../patches/cc-wrapper {
# inherit stdenv binutils coreutils ;
# libc = glibc;
# nativeTools = false;
# nativeLibc = false;
# cc = icc-native;
# };
#
#
# stdenvICC = (overrideCC stdenv WrappedICC) // { isICC = true; };
#
# stdenvIntelfSupported = if (WrappedICC != null) then stdenvICC else stdenv;
#
# stdenvIntelIfSupportedElseClang = if (WrappedICC != null) then stdenvICC else clangStdenv;
#
# intelMKLIfSupported = if (WrappedICC != null) then intel-mkl else pkgs.blas;
# };
# llvmPackages_10 = callPackage ../development/compilers/llvm/10 ({
# inherit (stdenvAdapters) overrideCC;
# buildLlvmTools = buildPackages.llvmPackages_10.tools;
# targetLlvmLibraries = targetPackages.llvmPackages_10.libraries;
# } // stdenv.lib.optionalAttrs (stdenv.hostPlatform.isi686 && buildPackages.stdenv.cc.isGNU) {
# stdenv = gcc7Stdenv;
# });
# llvmPackages_latest = llvmPackages_10;
2020-06-17 13:00:49 +02:00
#
# cpic = callPackage ./bsc/cpic/default.nix {
# stdenv = stdenv_nanos6;
# tampi = tampi;
# mpi = mpi;
# nanos6 = nanos6-git;
## llvm-ompss2 = llvm-ompss2;
# };
dummy = callPackage ./bsc/dummy/default.nix {
};
chroot = callPackage ./test/chroot.nix {};
# llvmOmpss2Packages = callPackage bsc/llvm-ompss2/11/default.nix {};
clang-ompss2-unwrapped = callPackage ./bsc/llvm-ompss2/clang.nix {
stdenv = pkgs.llvmPackages_10.stdenv;
};
clang-ompss2 = callPackage bsc/llvm-ompss2/default.nix {
nanos6 = nanos6-git;
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-17 13:00:49 +02:00
test-clang-ompss2 = callPackage ./test/compilers/clang-ompss2.nix {
stdenv = stdenv-nanos6;
nanos6 = nanos6-git;
inherit clang-ompss2;
};
2020-06-11 19:04:16 +02:00
cpic = callPackage ./bsc/cpic/default.nix {
2020-06-17 13:00:49 +02:00
stdenv = stdenv-nanos6;
2020-06-15 11:54:22 +02:00
tampi = tampi;
2020-06-15 12:03:11 +02:00
mpi = mpi;
nanos6 = nanos6-git;
2020-06-15 11:54:22 +02:00
# llvm-ompss2 = llvm-ompss2;
2020-06-11 19:04:16 +02:00
};
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