mirror of
https://github.com/Ascend/ascend-docker-runtime.git
synced 2025-10-20 19:36:04 +08:00
Match-id-1c5eeb8dd8fc78b849c71029695ab7e126b8273c
This commit is contained in:
@@ -82,6 +82,7 @@ package:
|
|||||||
- "{{ systemEnv.workspace }}/ascend-docker-plugin/build/scripts/base.list"
|
- "{{ 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_A500"
|
||||||
- "{{ systemEnv.workspace }}/ascend-docker-plugin/build/scripts/base.list_A200"
|
- "{{ 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/assets"
|
||||||
- "{{ systemEnv.workspace }}/ascend-docker-plugin/README.md"
|
- "{{ systemEnv.workspace }}/ascend-docker-plugin/README.md"
|
||||||
- "{{ systemEnv.workspace }}/ascend-docker-plugin/build/scripts/run_main.sh"
|
- "{{ systemEnv.workspace }}/ascend-docker-plugin/build/scripts/run_main.sh"
|
||||||
|
3
build/scripts/base.list_A200ISoC
Normal file
3
build/scripts/base.list_A200ISoC
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
/usr/local/bin/npu-smi
|
||||||
|
/etc/hdcBasic.cfg
|
||||||
|
/etc/sys_version.conf
|
@@ -2,5 +2,4 @@
|
|||||||
--install-path Specify the installation path (default: /usr/local/Ascend/Ascend-Docker-Runtime)
|
--install-path Specify the installation path (default: /usr/local/Ascend/Ascend-Docker-Runtime)
|
||||||
--uninstall Uninstall the installed ascend-docker-runtime tool
|
--uninstall Uninstall the installed ascend-docker-runtime tool
|
||||||
--upgrade Upgrade the installed ascend-docker-runtime tool
|
--upgrade Upgrade the installed ascend-docker-runtime tool
|
||||||
--devel Install as devel mode
|
--install-type=<type> A500, A200ISoC and A200 need to specify the installation type of Ascend-mindx-toolbox (eg: --install-type=A500)
|
||||||
--install-type=<type> A500 and A200 need to specify the installation type of Ascend-mindx-toolbox (eg: --install-type=A500)
|
|
@@ -52,6 +52,8 @@ function install()
|
|||||||
cp -f ./base.list_A500 ${ASCEND_RUNTIME_CONFIG_DIR}/base.list
|
cp -f ./base.list_A500 ${ASCEND_RUNTIME_CONFIG_DIR}/base.list
|
||||||
elif [ "${a200}" == "y" ]; then
|
elif [ "${a200}" == "y" ]; then
|
||||||
cp -f ./base.list_A200 ${ASCEND_RUNTIME_CONFIG_DIR}/base.list
|
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
|
else
|
||||||
cp -f ./base.list ${ASCEND_RUNTIME_CONFIG_DIR}/base.list
|
cp -f ./base.list ${ASCEND_RUNTIME_CONFIG_DIR}/base.list
|
||||||
fi
|
fi
|
||||||
@@ -134,9 +136,9 @@ INSTALL_FLAG=n
|
|||||||
INSTALL_PATH_FLAG=n
|
INSTALL_PATH_FLAG=n
|
||||||
UNINSTALL_FLAG=n
|
UNINSTALL_FLAG=n
|
||||||
UPGRADE_FLAG=n
|
UPGRADE_FLAG=n
|
||||||
DEVEL_FLAG=n
|
|
||||||
a500=n
|
a500=n
|
||||||
a200=n
|
a200=n
|
||||||
|
a200isoc=n
|
||||||
|
|
||||||
while true
|
while true
|
||||||
do
|
do
|
||||||
@@ -175,16 +177,8 @@ do
|
|||||||
UPGRADE_FLAG=y
|
UPGRADE_FLAG=y
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
--devel)
|
|
||||||
if [ "${DEVEL_FLAG}" == "y" ]; then
|
|
||||||
echo "warning :Repeat parameter!"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
DEVEL_FLAG=y
|
|
||||||
shift
|
|
||||||
;;
|
|
||||||
--install-type=*)
|
--install-type=*)
|
||||||
if [ "${a500}" == "y" ] || [ "${a200}" == "y" ]; then
|
if [ "${a500}" == "y" ] || [ "${a200}" == "y" ] || [ "${a200isoc}" == "y" ]; then
|
||||||
echo "warning :Repeat parameter!"
|
echo "warning :Repeat parameter!"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
@@ -193,6 +187,8 @@ do
|
|||||||
a500=y
|
a500=y
|
||||||
elif [ "$3" == "--install-type=A200" ]; then
|
elif [ "$3" == "--install-type=A200" ]; then
|
||||||
a200=y
|
a200=y
|
||||||
|
elif [ "$3" == "--install-type=A200ISoC" ]; then
|
||||||
|
a200isoc=y
|
||||||
else
|
else
|
||||||
echo "error :Please check the parameter of --install-type=<type>"
|
echo "error :Please check the parameter of --install-type=<type>"
|
||||||
exit 1
|
exit 1
|
||||||
@@ -219,8 +215,7 @@ fi
|
|||||||
if [ "${INSTALL_PATH_FLAG}" == "y" ] && \
|
if [ "${INSTALL_PATH_FLAG}" == "y" ] && \
|
||||||
[ "${INSTALL_FLAG}" == "n" ] && \
|
[ "${INSTALL_FLAG}" == "n" ] && \
|
||||||
[ "${UNINSTALL_FLAG}" == "n" ] && \
|
[ "${UNINSTALL_FLAG}" == "n" ] && \
|
||||||
[ "${UPGRADE_FLAG}" == "n" ] && \
|
[ "${UPGRADE_FLAG}" == "n" ]; then
|
||||||
[ "${DEVEL_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"
|
echo "Error:only input <install_path> command. When use --install-path you also need intput --install or --uninstall or --upgrade or --devel"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
@@ -231,7 +226,7 @@ if [ "${UID}" != "0" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${INSTALL_FLAG}" == "y" ] || [ "${DEVEL_FLAG}" == "y" ]; then
|
if [ "${INSTALL_FLAG}" == "y" ]; then
|
||||||
install
|
install
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user