Match-id-1c5eeb8dd8fc78b849c71029695ab7e126b8273c

This commit is contained in:
BianTanggui
2022-09-22 20:54:03 +08:00
parent 749dd140d6
commit 26f50ffdbf
4 changed files with 13 additions and 15 deletions

View File

@@ -82,6 +82,7 @@ package:
- "{{ systemEnv.workspace }}/ascend-docker-plugin/build/scripts/base.list"
- "{{ systemEnv.workspace }}/ascend-docker-plugin/build/scripts/base.list_A500"
- "{{ systemEnv.workspace }}/ascend-docker-plugin/build/scripts/base.list_A200"
- "{{ systemEnv.workspace }}/ascend-docker-plugin/build/scripts/base.list_A200ISoC"
- "{{ systemEnv.workspace }}/ascend-docker-plugin/assets"
- "{{ systemEnv.workspace }}/ascend-docker-plugin/README.md"
- "{{ systemEnv.workspace }}/ascend-docker-plugin/build/scripts/run_main.sh"

View File

@@ -0,0 +1,3 @@
/usr/local/bin/npu-smi
/etc/hdcBasic.cfg
/etc/sys_version.conf

View File

@@ -2,5 +2,4 @@
--install-path Specify the installation path (default: /usr/local/Ascend/Ascend-Docker-Runtime)
--uninstall Uninstall the installed ascend-docker-runtime tool
--upgrade Upgrade the installed ascend-docker-runtime tool
--devel Install as devel mode
--install-type=<type> A500 and A200 need to specify the installation type of Ascend-mindx-toolbox (eg: --install-type=A500)
--install-type=<type> A500, A200ISoC and A200 need to specify the installation type of Ascend-mindx-toolbox (eg: --install-type=A500)

View File

@@ -52,6 +52,8 @@ function install()
cp -f ./base.list_A500 ${ASCEND_RUNTIME_CONFIG_DIR}/base.list
elif [ "${a200}" == "y" ]; then
cp -f ./base.list_A200 ${ASCEND_RUNTIME_CONFIG_DIR}/base.list
elif [ "${a200isoc}" == "y" ]; then
cp -f ./base.list_A200ISoC ${ASCEND_RUNTIME_CONFIG_DIR}/base.list
else
cp -f ./base.list ${ASCEND_RUNTIME_CONFIG_DIR}/base.list
fi
@@ -134,9 +136,9 @@ INSTALL_FLAG=n
INSTALL_PATH_FLAG=n
UNINSTALL_FLAG=n
UPGRADE_FLAG=n
DEVEL_FLAG=n
a500=n
a200=n
a200isoc=n
while true
do
@@ -175,16 +177,8 @@ do
UPGRADE_FLAG=y
shift
;;
--devel)
if [ "${DEVEL_FLAG}" == "y" ]; then
echo "warning :Repeat parameter!"
exit 1
fi
DEVEL_FLAG=y
shift
;;
--install-type=*)
if [ "${a500}" == "y" ] || [ "${a200}" == "y" ]; then
if [ "${a500}" == "y" ] || [ "${a200}" == "y" ] || [ "${a200isoc}" == "y" ]; then
echo "warning :Repeat parameter!"
exit 1
fi
@@ -193,6 +187,8 @@ do
a500=y
elif [ "$3" == "--install-type=A200" ]; then
a200=y
elif [ "$3" == "--install-type=A200ISoC" ]; then
a200isoc=y
else
echo "error :Please check the parameter of --install-type=<type>"
exit 1
@@ -219,8 +215,7 @@ fi
if [ "${INSTALL_PATH_FLAG}" == "y" ] && \
[ "${INSTALL_FLAG}" == "n" ] && \
[ "${UNINSTALL_FLAG}" == "n" ] && \
[ "${UPGRADE_FLAG}" == "n" ] && \
[ "${DEVEL_FLAG}" == "n" ]; then
[ "${UPGRADE_FLAG}" == "n" ]; then
echo "Error:only input <install_path> command. When use --install-path you also need intput --install or --uninstall or --upgrade or --devel"
exit 1
fi
@@ -231,7 +226,7 @@ if [ "${UID}" != "0" ]; then
exit 1
fi
if [ "${INSTALL_FLAG}" == "y" ] || [ "${DEVEL_FLAG}" == "y" ]; then
if [ "${INSTALL_FLAG}" == "y" ]; then
install
exit 0
fi