Files
rocm-systems/opencl/packaging/rocm-opencl.rpm_postun
T
Pruthvi Madugundu b88a313eff Adding support for multiple icd files specific to ROCm version
- amdocl64.icd is renamed to amdocl64_<ROCM_PATCH_VERSION>.icd
- This will enable support for multiple icd for different versions of
  ROCm

Signed-off-by: Pruthvi Madugundu <pruthvi.madugundu@amd.com>
Change-Id: I8031b19f8579507ffb6727dedcd2e3fbb4e45de8
2020-07-09 18:04:18 -07:00

12 行
403 B
Plaintext

if [ $1 -eq 0 ]; then
rm -f /etc/ld.so.conf.d/x86_64-rocm-opencl.conf && ldconfig
rm -f /etc/OpenCL/vendors/@OPENCL_AMD_ICD_FILE@
rm -f @ROCM_PATH@/lib/libOpenCL.so
rm -f @ROCM_PATH@/lib/libOpenCL.so.@OPENCL_LIB_VERSION_MAJOR@
rm -f @ROCM_PATH@/lib/libOpenCL.so.@OPENCL_LIB_VERSION_STRING@
rmdir --ignore-fail-on-non-empty @ROCM_PATH@/lib
rmdir --ignore-fail-on-non-empty @ROCM_PATH@
fi