Compare commits

..

12 Commits

Author SHA1 Message Date
c2578d64b6
Minify packages.json
Some checks failed
CI / build:all (pull_request) Failing after 6m16s
2025-10-08 11:45:16 +02:00
bdb8b5ce38
Use packages.json for intel packages instead of awk script 2025-10-08 11:45:15 +02:00
082b82826e
Use gcc13 for llvm-ompss2 for intel 2025-10-08 11:41:26 +02:00
15695dc2cf
Use gcc13 for intel compiler 2025-10-08 11:41:26 +02:00
8713d081fe
Add passthru in ompss2 wrapper for icpx compat 2025-10-08 11:41:26 +02:00
c678fa0007
Remove wrapper flags when clang called from intel 2025-10-08 11:41:26 +02:00
180d416b9f
Add oneMath 2025-10-08 11:41:25 +02:00
19ad4ff56a
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 11:41:25 +02:00
4663dae31f
Add TASYCL 2.1.0 2025-10-08 11:41:25 +02:00
d60713ef9e
Add test for icpx with ompss-2 as host compiler 2025-10-08 11:41:25 +02:00
f15055ccdb
Add SYCL test compilation 2025-10-08 11:41:25 +02:00
f836ffe7dc
Add intelPackages_202{4,5} and make 2025 the default 2025-10-08 11:41:25 +02:00
6 changed files with 14 additions and 192358 deletions

View File

@ -35,35 +35,18 @@ let
mpi = "2021.9.0"; mpi = "2021.9.0";
}; };
aptPackageIndex = stdenv.mkDerivation {
name = "intel-oneapi-packages";
srcs = [
# Run update.sh to update the package lists
./amd64-packages ./all-packages
];
phases = [ "installPhase" ];
installPhase = ''
awk -F': ' '\
BEGIN { print "[ {" } \
NF==0 { empty=1; } \
NF && empty { print "} {"; empty=0; } \
/: / { printf "%s = \"%s\";\n", $1, $2 } \
END { print "} ]" }' $srcs > $out
'';
};
findMatch = name: findMatch = name:
let let
aptPackages = import aptPackageIndex; aptPackages = builtins.fromJSON (builtins.readFile ./packages.json);
matches = lib.filter (x: name == x.Package) aptPackages; matches = lib.filter (x: name == x.pname) aptPackages;
n = lib.length matches; n = lib.length matches;
match = builtins.traceVerbose (name + " -- ${builtins.toString n}") (builtins.head matches); match = builtins.traceVerbose (name + " -- ${builtins.toString n}") (builtins.head matches);
apthost = "https://apt.repos.intel.com/oneapi/"; apthost = "https://apt.repos.intel.com/oneapi/";
in in
{ {
url = apthost + match.Filename; url = apthost + match.filename;
sha256 = match.SHA256; sha256 = match.sha256;
}; };
uncompressDebs = debs: name: stdenv.mkDerivation { uncompressDebs = debs: name: stdenv.mkDerivation {

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -11,7 +11,7 @@ def extract_fields: {
} ; } ;
# parses dependencies into a list of [{.pname, .kind, .version}] # parses dependencies into a list of [{.pname, .kind, .version}]
# some dependencies do not have a version specified, in which case, version = version = null # some dependencies do not have a version specified, in which case, kind = version = null
# #
# example dependencies: # example dependencies:
# intel-oneapi-common-vars (>= 2023.0.0-25325), intel-oneapi-common-licensing-2023.0.0 # intel-oneapi-common-vars (>= 2023.0.0-25325), intel-oneapi-common-licensing-2023.0.0

View File

@ -1,6 +1,11 @@
#!/bin/sh #!/bin/sh
curl https://apt.repos.intel.com/oneapi/dists/all/main/binary-amd64/Packages -o amd64-packages out_64=$(mktemp intel-api.64.XXXXXX)
curl https://apt.repos.intel.com/oneapi/dists/all/main/binary-all/Packages -o all-packages out_all=$(mktemp intel-api.all.XXXXXX)
trap 'rm -f "$out_64" "$out_all"' EXIT INT HUP
cat amd64-packages all-packages | ./toJson.awk | ./process.jq >packages.json curl https://apt.repos.intel.com/oneapi/dists/all/main/binary-amd64/Packages -o "$out_64"
curl https://apt.repos.intel.com/oneapi/dists/all/main/binary-all/Packages -o "$out_all"
# NOTE: we use `jq -r tostring` to minify the json (3.2Mb -> 2.3Mb)
cat "$out_64" "$out_all" | ./toJson.awk | ./process.jq | jq -r tostring >packages.json