intel: add intel compiler 2021.2.0

This commit is contained in:
2021-06-16 14:26:48 +02:00
parent 180fa4c992
commit a6549c1908
3 changed files with 180 additions and 1 deletions

View File

@@ -37,13 +37,21 @@ let
intel-mpi = bsc.intelMpi;
};
icc2021Unwrapped = callPackage ./bsc/intel-compiler/icc2021.nix { };
# A wrapper script that puts all the flags and environment vars
# properly and calls the intel compiler binary
icc = appendPasstru (callPackage ./bsc/intel-compiler/default.nix {
icc2020 = appendPasstru (callPackage ./bsc/intel-compiler/default.nix {
iccUnwrapped = bsc.iccUnwrapped;
intelLicense = bsc.intelLicense;
}) { CC = "icc"; CXX = "icpc"; };
icc2021 = appendPasstru (callPackage ./bsc/intel-compiler/wrapper2021.nix {
iccUnwrapped = bsc.icc2021Unwrapped;
}) { CC = "icc"; CXX = "icpc"; };
icc = bsc.icc2020;
# We need to set the cc.CC and cc.CXX attributes, in order to
# determine the name of the compiler
gcc = appendPasstru self.gcc { CC = "gcc"; CXX = "g++"; };