SWDEV-438177 - move ldconfig to amd opencl package instead of icd

Change-Id: I2486f38d398a508ead7d24f03d4cf7816d5c157c
Цей коміт міститься в:
Alex Xie authored and AlexBin Xie committed 2023-12-20 10:04:58 -05:00
1 джерело 5158ec1c00
коміт 06ff62da61
4 files changed
+11

No files matched your search

+3
Переглянути файл
@@ -2,8 +2,11 @@
set -e
INSTALL_PATH=@CPACK_PACKAGING_INSTALL_PREFIX@
do_ldconfig() {
echo ${INSTALL_PATH}/@CMAKE_INSTALL_LIBDIR@ > /@CMAKE_INSTALL_SYSCONFDIR@/ld.so.conf.d/10-rocm-opencl.conf && ldconfig
mkdir -p /@CMAKE_INSTALL_SYSCONFDIR@/OpenCL/vendors && (echo libamdocl64.so > /@CMAKE_INSTALL_SYSCONFDIR@/OpenCL/vendors/@OPENCL_AMD_ICD_FILE@)
}
+1
Переглянути файл
@@ -3,6 +3,7 @@
set -e
rm_ldconfig() {
rm -f /@CMAKE_INSTALL_SYSCONFDIR@/ld.so.conf.d/10-rocm-opencl.conf && ldconfig
rm -f /@CMAKE_INSTALL_SYSCONFDIR@/OpenCL/vendors/@OPENCL_AMD_ICD_FILE@
}
+3
Переглянути файл
@@ -1 +1,4 @@
INSTALL_PATH=@CPACK_PACKAGING_INSTALL_PREFIX@
echo ${INSTALL_PATH}/@CMAKE_INSTALL_LIBDIR@ > /@CMAKE_INSTALL_SYSCONFDIR@/ld.so.conf.d/10-rocm-opencl.conf && ldconfig
mkdir -p /@CMAKE_INSTALL_SYSCONFDIR@/OpenCL/vendors && (echo libamdocl64.so > /@CMAKE_INSTALL_SYSCONFDIR@/OpenCL/vendors/@OPENCL_AMD_ICD_FILE@)
+4
Переглянути файл
@@ -1,3 +1,7 @@
if [ $1 -eq 0 ]; then
# Remove rocm-opencl.conf during remove/uninstall operation
rm -f /@CMAKE_INSTALL_SYSCONFDIR@/ld.so.conf.d/10-rocm-opencl.conf && ldconfig
fi
# Remove icd file for uninstall and upgrade operation
rm -f /@CMAKE_INSTALL_SYSCONFDIR@/OpenCL/vendors/@OPENCL_AMD_ICD_FILE@