nccl-tests/scripts/uninstall_sihpc
2025-12-21 03:12:56 +00:00

25 lines
506 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
# sihpc-uninstaller.sh
set -e
SIHPC_ROOT="/usr/local/sihpc"
if [ ! -d "$SIHPC_ROOT" ]; then
echo "sihpc install dir $SIHPC_ROOT not exist."
exit 1
fi
echo "=============================="
echo " uninstall sihpc"
echo " install dir: $SIHPC_ROOT"
echo "=============================="
echo "deleting $SIHPC_ROOT ..."
rm -rf "$SIHPC_ROOT"
echo "please check shell config~/.bashrc, ~/.zshrc etc."
echo "remove $SIHPC_ROOT/bin from PATH"
echo "sihpc unintall done"
exit 0