代码拉取完成,页面将自动刷新
同步操作将从 openEuler/BiSheng-Autotuner 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#!/bin/bash -e
# Script to install autotuner
# Copyright (C) 2017-2020, Huawei Technologies Co., Ltd. All rights reserved.
SCRIPT_DIR=$(dirname $(realpath -s $0))
PYTHONPATH=$SCRIPT_DIR:$SCRIPT_DIR/../opentuner:$PYTHONPATH
export PYTHONPATH
usage() {
cat <<EOF
Usage: $0 [option]
Install autotuner command in development mode
Options:
-h Display this help message.
-t Test autotuner after installation.
--test-only Test autotuner without installing it.
--test-installation Test the autotuner installation script.
EOF
}
run_tests() {
python3 -m unittest discover -s $SCRIPT_DIR/autotuner/test/ --buffer
}
run_install() {
python3 -m pip install "$SCRIPT_DIR" --user
}
if [[ "$1" = "-h" ]];
then
usage
exit
elif [[ "$1" = "-t" ]];
then
run_install
run_tests
elif [[ "$1" = "--test-only" ]];
then
run_tests
exit
elif [[ "$1" = "--test-installation" ]];
then
$SCRIPT_DIR/../huawei/autotuner-install-test.sh
exit
else
run_install
fi
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。