Dosyalar
rocm-systems/rocm-core.prerm
T
Nirmal Unnikrishnan 38959daacd SWDEV-354524 : Changing the module file name.
Now modules can be loaded as module load rocm/x.x.x

Change-Id: I6fe5b5fb9bb852a2bfac9b69ac0c96b75d4fb959
2022-12-08 22:16:27 -06:00

26 satır
668 B
Bash
Çalıştırılabilir Dosya

#!/bin/bash
do_update_alternatives(){
# skip update if program doesn't exist
command -v update-alternatives >/dev/null || return 0
# Update the /opt/rocm symlink
update-alternatives --remove "rocm" "@CPACK_PACKAGING_INSTALL_PREFIX@"
update-alternatives --remove "rocmmod@ROCM_VERSION@" "@CPACK_PACKAGING_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@/rocmmod"|| true
}
if [ -e /etc/lsb-release ] && source /etc/lsb-release && [ "$DISTRIB_ID" = "Ubuntu" ]
then
case "$1" in
(remove | upgrade)
do_update_alternatives
;;
(purge)
;;
(*)
exit 0
;;
esac
else
do_update_alternatives
fi