Compare commits

..

11 Commits

Author SHA1 Message Date
15a1014280 Update versions to 2025.2 2025-10-08 14:19:44 +02:00
0a27ae0926 Minify packages.json 2025-10-08 14:19:44 +02:00
3ed5463c25 Use packages.json for intel packages instead of awk script 2025-10-08 14:19:44 +02:00
1430ae7ceb Use gcc13 for llvm-ompss2 for intel 2025-10-08 14:19:31 +02:00
96bb46cfbf Use gcc13 for intel compiler 2025-10-08 14:18:18 +02:00
3a60d4a77e Add passthru in ompss2 wrapper for icpx compat 2025-10-08 14:18:17 +02:00
ed573138e4 Remove wrapper flags when clang called from intel 2025-10-08 14:18:17 +02:00
4c1791c95d Add oneMath 2025-10-08 14:18:17 +02:00
f8f3811b67 Fix parsing of new apt package list for oneapi 2023
New apt list does not have Package: as the first entry for all packages
2025-10-08 14:18:17 +02:00
684e290a38 Add TASYCL 2.1.0 2025-10-08 14:18:17 +02:00
25543ac0a1 Add test for icpx with ompss-2 as host compiler 2025-10-08 14:18:17 +02:00
3 changed files with 19 additions and 16 deletions

View File

@@ -49,14 +49,25 @@ let
in (wrapCCWith {
inherit cc;
extraBuildCommands = ''
echo "-isystem ${cc}/include" >> $out/nix-support/cc-cflags
echo "-isystem ${cc}/include/intel64" >> $out/nix-support/cc-cflags
echo "-L${gcc.cc}/lib/gcc/${targetConfig}/${gcc.version}" >> $out/nix-support/cc-ldflags
echo "-L${gcc.cc.lib}/lib" >> $out/nix-support/cc-ldflags
echo "-L${cc}/lib" >> $out/nix-support/cc-ldflags
echo "--gcc-toolchain=${gcc.cc}" >> $out/nix-support/libcxx-cxxflags
# echo "--gcc-toolchain=${gcc.cc}" >> $out/nix-support/libcxx-cxxflags
echo "--gcc-toolchain=${gcc.cc}" >> $out/nix-support/cc-cflags
# For some reason, If we don't resolve the realpath things go wrong
for stddef in ${cc}/lib/clang/*/include/stddef.h ; do
dir=$(dirname $(realpath "$stddef"))
echo "-isystem $dir" >> $out/nix-support/cc-cflags
done
echo "-isystem ${cc}/include" >> $out/nix-support/cc-cflags
echo "-isystem ${cc}/include/intel64" >> $out/nix-support/cc-cflags
for dir in ${gcc.cc}/lib/gcc/${targetConfig}/*/include; do
echo "-isystem $dir" >> $out/nix-support/cc-cflags
done
for dir in ${gcc.cc}/include/c++/*; do
echo "-isystem $dir" >> $out/nix-support/libcxx-cxxflags
@@ -69,16 +80,8 @@ let
# this ugly hack. See https://jungle.bsc.es/git/rarias/bscpkgs/issues/9
echo 'path_backup="${gcc.cc}/bin:$path_backup"' >> $out/nix-support/cc-wrapper-hook
# Disable hardening by default
echo "" > $out/nix-support/add-hardening.sh
# For some reason, If we don't resolve the realpath things go wrong
for stddef in ${cc}/lib/clang/*/include/stddef.h ; do
dir=$(dirname $(realpath "$stddef"))
echo "-isystem $dir" >> $out/nix-support/cc-cflags
done
'' + extraBuildCommands;
} // (removeAttrs args ["cc" "extraBuildCommands" "extraInstall"])
).overrideAttrs (old: {

View File

@@ -95,6 +95,7 @@ let
wrappedCCIntel = wrapCCWith {
inherit bintools extraPackages;
cc = cc.override { gcc = gcc13; }; # Intel uses gcc13, so we have to match it
gccForLibs = gcc13;
# extraPackages adds packages to depsTargetTargetPropagated
extraBuildCommands = intelExtraBuildCommands + envExports;
};

View File

@@ -44,13 +44,12 @@ intelPackages.stdenv.mkDerivation {
dontUnpack = true;
dontConfigure = true;
# NODES requires access to /sys/devices to request NUMA information. It will
# fail to run otherwise, so we disable the sandbox for this test.
__noChroot = true;
# NODES requires access to /sys/devices to request NUMA information
requiredSystemFeatures = [ "sys-devices" ];
env.NODES_HOME = nodes;
NIX_DEBUG = 0;
NIX_DEBUG = 1;
buildPhase = ''
cp $src hello.cpp
set -x