rocmPackages.clr: patch ICD vendor path

This commit is contained in:
Ryan Hendrickson 2024-06-08 17:49:13 -04:00
parent 58fab37168
commit d35c5d6340

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