Merge pull request #318374 from rhendric/rhendric/rocmPackages.clr-vendors-patch

rocmPackages{,_5}.clr: patch ICD vendor path
This commit is contained in:
Bernardo Meurer 2024-06-24 10:19:03 -04:00 committed by GitHub
commit f7184d625d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 0 deletions

View File

@ -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 = ''

View File

@ -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 = ''