5f710a5ecb
- The entry removed only when the installation is NOT /opt/rocm Signed-off-by: Pruthvi Madugundu <pruthvi.madugundu@amd.com> Change-Id: Ib90f89e63cffb4ae8f628af15387a49bb6511a5f
23 lines
400 B
Bash
23 lines
400 B
Bash
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
do_ldconfig() {
|
|
if [ -e "/opt/rocm/opencl" ] ; then
|
|
echo /opt/rocm/opencl/lib > /etc/ld.so.conf.d/x86_64-rocm-opencl.conf && ldconfig
|
|
fi
|
|
mkdir -p /etc/OpenCL/vendors && (echo libamdocl64.so > /etc/OpenCL/vendors/amdocl64.icd)
|
|
}
|
|
|
|
case "$1" in
|
|
abort-deconfigure|abort-remove|abort-upgrade)
|
|
echo "$1"
|
|
;;
|
|
configure)
|
|
do_ldconfig
|
|
;;
|
|
*)
|
|
exit 0
|
|
;;
|
|
esac
|