diff --git a/build/conf/ascend-docker-plugin.yaml b/build/conf/ascend-docker-plugin.yaml index 6ed0692..ae2469b 100644 --- a/build/conf/ascend-docker-plugin.yaml +++ b/build/conf/ascend-docker-plugin.yaml @@ -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" diff --git a/build/scripts/base.list_A200ISoC b/build/scripts/base.list_A200ISoC new file mode 100644 index 0000000..7befba7 --- /dev/null +++ b/build/scripts/base.list_A200ISoC @@ -0,0 +1,3 @@ +/usr/local/bin/npu-smi +/etc/hdcBasic.cfg +/etc/sys_version.conf \ No newline at end of file diff --git a/build/scripts/help.info b/build/scripts/help.info index 0d8bae1..f1703ef 100644 --- a/build/scripts/help.info +++ b/build/scripts/help.info @@ -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= A500 and A200 need to specify the installation type of Ascend-mindx-toolbox (eg: --install-type=A500) \ No newline at end of file + --install-type= A500, A200ISoC and A200 need to specify the installation type of Ascend-mindx-toolbox (eg: --install-type=A500) \ No newline at end of file diff --git a/build/scripts/run_main.sh b/build/scripts/run_main.sh index 417ca0b..f7551b2 100644 --- a/build/scripts/run_main.sh +++ b/build/scripts/run_main.sh @@ -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=" 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 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