about summary refs log tree commit diff
path: root/pkgs/development/rocm-modules
diff options
context:
space:
mode:
authorBernardo Meurer <bernardo@meurer.org>2024-06-24 10:19:03 -0400
committerGitHub <noreply@github.com>2024-06-24 10:19:03 -0400
commitf7184d625d1a81fb1adbf7c84598cdb0b469016c (patch)
tree7e251bbd619ebd3797535c571e5744771d1edfcd /pkgs/development/rocm-modules
parent398222724ab1c7f62cc5dc6ee8cfd217be2bc2f5 (diff)
parentd35c5d63403fb7b95e2c2d5ee2e94c4651c8f065 (diff)
Merge pull request #318374 from rhendric/rhendric/rocmPackages.clr-vendors-patch
rocmPackages{,_5}.clr: patch ICD vendor path
Diffstat (limited to 'pkgs/development/rocm-modules')
-rw-r--r--pkgs/development/rocm-modules/5/clr/default.nix4
-rw-r--r--pkgs/development/rocm-modules/6/clr/default.nix4
2 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/development/rocm-modules/5/clr/default.nix b/pkgs/development/rocm-modules/5/clr/default.nix
index 0c702dace2b81..49857e9d26f5a 100644
--- a/pkgs/development/rocm-modules/5/clr/default.nix
+++ b/pkgs/development/rocm-modules/5/clr/default.nix
@@ -114,6 +114,10 @@ in stdenv.mkDerivation (finalAttrs: {
 
     substituteInPlace hipamd/src/hip_embed_pch.sh \
       --replace "\''$LLVM_DIR/bin/clang" "${clang}/bin/clang"
+
+    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 = ''
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 = ''