From 556aacb6b860f7d6dbf606f0f3889ec1bdf53793 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleix=20Bon=C3=A9?= Date: Mon, 15 Dec 2025 11:47:22 +0100 Subject: [PATCH] Add intel.icd to hpckit compiler --- pkgs/intel-oneapi/patch_intel.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pkgs/intel-oneapi/patch_intel.nix b/pkgs/intel-oneapi/patch_intel.nix index 67dfc38..86c93d8 100644 --- a/pkgs/intel-oneapi/patch_intel.nix +++ b/pkgs/intel-oneapi/patch_intel.nix @@ -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;