diff options
author | Bernardo Meurer <bernardo@meurer.org> | 2024-06-24 10:19:03 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-24 10:19:03 -0400 |
commit | f7184d625d1a81fb1adbf7c84598cdb0b469016c (patch) | |
tree | 7e251bbd619ebd3797535c571e5744771d1edfcd /pkgs | |
parent | 398222724ab1c7f62cc5dc6ee8cfd217be2bc2f5 (diff) | |
parent | d35c5d63403fb7b95e2c2d5ee2e94c4651c8f065 (diff) |
Merge pull request #318374 from rhendric/rhendric/rocmPackages.clr-vendors-patch
rocmPackages{,_5}.clr: patch ICD vendor path
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/rocm-modules/5/clr/default.nix | 4 | ||||
-rw-r--r-- | pkgs/development/rocm-modules/6/clr/default.nix | 4 |
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 = '' |