# # Precondition: Uninstall hisi package # # 0. mount mount -t nfs -o vers=3,nolock 8.92.9.30:/data/nfs /nfs # 1. Uninstall # 1.1 hisi bash /usr/local/Ascend/opp/Ascend910/aicpu/script/uninstall.sh bash /usr/local/Ascend/toolkit/script/uninstall.sh bash /usr/local/Ascend/opp/script/uninstall.sh bash /usr/local/Ascend/tfplugin/script/uninstall.sh bash /usr/local/Ascend/fwkacllib/script/uninstall.sh bash /usr/local/Ascend/firmware/script/uninstall.sh bash /usr/local/Ascend/driver/script/uninstall.sh rm -rf /usr/local/Ascend # 1.2 atlas bash /usr/local/Ascend/ascend-toolkit/5.0.rc1/arm64-linux/toolkit/python/site-packages/op_gen/template/op_project_tmpl/scripts/uninstall.sh bash /usr/local/Ascend/ascend-toolkit/5.0.rc1/arm64-linux/toolkit/tools/system-profiling/script/uninstall.sh bash /usr/local/Ascend/ascend-toolkit/5.0.rc1/arm64-linux/toolkit/tools/system-profiling/malluma/install/uninstall.sh bash /usr/local/Ascend/ascend-toolkit/5.0.rc1/arm64-linux/toolkit/script/uninstall.sh bash /usr/local/Ascend/ascend-toolkit/5.0.rc1/arm64-linux/pyACL/script/uninstall.sh bash /usr/local/Ascend/ascend-toolkit/5.0.rc1/arm64-linux/atc/script/uninstall.sh bash /usr/local/Ascend/ascend-toolkit/5.0.rc1/arm64-linux/acllib/script/uninstall.sh bash /usr/local/Ascend/ascend-toolkit/5.0.rc1/arm64-linux/opp/Ascend910/aicpu/script/uninstall.sh bash /usr/local/Ascend/ascend-toolkit/5.0.rc1/arm64-linux/opp/Ascend310/aicpu/script/uninstall.sh bash /usr/local/Ascend/ascend-toolkit/5.0.rc1/arm64-linux/opp/script/uninstall.sh bash /usr/local/Ascend/ascend-toolkit/5.0.rc1/arm64-linux/script/uninstall.sh bash /usr/local/Ascend/ascend-toolkit/5.0.rc1/arm64-linux/fwkacllib/script/uninstall.sh bash /usr/local/Ascend/firmware/script/uninstall.sh bash /usr/local/Ascend/driver/script/uninstall.sh rm -rf /usr/local/Ascend # 2. driver cd /nfs/ascend/ascend910/20210308/ascend910/euleros2.8_aarch64 bash A800-9000-npu-driver*-aarch64.run --full # 3. firmware cd /nfs/ascend/ascend910/20210308/ascend910/common bash A800-9000-npu-firmware_*.run --full # 4. toolkit cd /nfs/ascend/ascend910/20210308/ascend910/common/aarch64 bash Ascend-cann-toolkit*_linux-aarch64.run --install --quiet # 5. Change log level # sed -i 's#enableEvent=1#enableEvent=0#g' /var/log/npu/conf/slog/slog.conf # 6. Close device log # su HwHiAiUser -c "/usr/local/Ascend/ascend-toolkit/latest/toolkit/bin/adc --host 127.0.0.1:22118 --log \"SetLogLevel(0)[error]\"" # su HwHiAiUser -c "/usr/local/Ascend/ascend-toolkit/latest/toolkit/bin/adc --host 127.0.0.1:22118 --log \"SetLogLevel(0)[error]\" --device 4" # 6. reboot reboot