Add intel.icd to hpckit compiler

This commit is contained in:
Aleix Boné 2025-12-15 11:47:22 +01:00
parent 9991207323
commit 556aacb6b8
No known key found for this signature in database

View File

@ -20,6 +20,7 @@
rdma-core,
ucx,
zlib,
writeTextFile,
}:
lib.makeOverridable (
@ -157,11 +158,17 @@ lib.makeOverridable (
folder: version:
let
original = "${finalAttrs.finalPackage}/${folder}/${version}";
etc-vendors = writeTextFile {
name = "intel-ocl-icd";
text = "${original}/lib/libintelocl.so";
destination = "/etc/OpenCL/vendors/intel.icd";
};
in
symlinkJoin {
pname = "intel-${folder}";
inherit version;
paths = [ original ];
paths = [ original ] ++ lib.optionals (folder == "compiler") [ etc-vendors ];
passthru = { inherit original; };
}
) _components;