about summary refs log tree commit diff
path: root/pkgs/development/rocm-modules
diff options
context:
space:
mode:
authorRyan Hendrickson <ryan.hendrickson@alum.mit.edu>2024-06-08 17:49:13 -0400
committerRyan Hendrickson <ryan.hendrickson@alum.mit.edu>2024-06-08 17:49:13 -0400
commitd35c5d63403fb7b95e2c2d5ee2e94c4651c8f065 (patch)
tree4a66a7e85a6ee0d0c831842786528f4e19474d79 /pkgs/development/rocm-modules
parent58fab3716806d3e8e7948bc099fc35a4306b0a26 (diff)
rocmPackages.clr: patch ICD vendor path
Diffstat (limited to 'pkgs/development/rocm-modules')
-rw-r--r--pkgs/development/rocm-modules/6/clr/default.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/development/rocm-modules/6/clr/default.nix b/pkgs/development/rocm-modules/6/clr/default.nix
index dedda194c8280..7d80242ccbda0 100644
--- a/pkgs/development/rocm-modules/6/clr/default.nix
+++ b/pkgs/development/rocm-modules/6/clr/default.nix
@@ -138,6 +138,10 @@ in stdenv.mkDerivation (finalAttrs: {
     # https://lists.debian.org/debian-ai/2024/02/msg00178.html
     substituteInPlace rocclr/utils/flags.hpp \
       --replace-fail "HIP_USE_RUNTIME_UNBUNDLER, false" "HIP_USE_RUNTIME_UNBUNDLER, true"
+
+    substituteInPlace opencl/khronos/icd/loader/icd_platform.h \
+      --replace-fail '#define ICD_VENDOR_PATH "/etc/OpenCL/vendors/";' \
+                     '#define ICD_VENDOR_PATH "/run/opengl-driver/etc/OpenCL/vendors/";'
   '';
 
   postInstall = ''