#/bin/bash
current_dir=$(cd $(dirname "$0"); pwd)
binary_dir=$(realpath "${current_dir}")
# 检查当前用户是否为 root
if [ "$(id -u)" -ne 0 ]; then
    echo "error: [memalloc] Task failed, no permission. Execute this operation as the root user"
    exit 1
fi
$binary_dir/diagnosis_python_cli memalloc $@