代码拉取完成,页面将自动刷新
设备管理插件拥有以下功能:
通过git拉取源码,并切换master分支,获得ascend-device-plugin。
示例:源码放在/home/mind-cluster/component/ascend-device-plugin目录下
执行以下命令,进入构建目录,根据设备插件应用场景,选择其中一个构建脚本执行,在“output“目录下生成二进制device-plugin、yaml文件和Dockerfile等文件。
cd /home/mind-cluster/component/ascend-device-plugin/build/
2.1 中心侧场景编译device-plugin(构建镜像,容器启动设备插件场景)
chmod +x build.sh
./build.sh
2.2 边侧场景编译device-plugin(二进制启动设备插件场景)
chmod +x build_edge.sh
./build_edge.sh
执行以下命令,查看output生成的软件列表。
ll /home/mind-cluster/component/ascend-device-plugin/output
drwxr-xr-x 2 root root 4096 4月 29 09:28 ./
drwxr-xr-x 6 root root 4096 4月 29 09:28 ../
-r-x------ 1 root root 59349656 4月 29 09:28 device-plugin*
-r-------- 1 root root 5555 4月 29 09:28 device-plugin-310P-1usoc-v6.0.0.yaml
-r-------- 1 root root 5555 4月 29 09:28 device-plugin-310P-1usoc-volcano-v6.0.0.yaml
-r-------- 1 root root 4962 4月 29 09:28 device-plugin-310P-v6.0.0.yaml
-r-------- 1 root root 5090 4月 29 09:28 device-plugin-310P-volcano-v6.0.0.yaml
-r-------- 1 root root 4566 4月 29 09:28 device-plugin-310-v6.0.0.yaml
-r-------- 1 root root 4588 4月 29 09:28 device-plugin-310-volcano-v6.0.0.yaml
-r-------- 1 root root 5024 4月 29 09:28 device-plugin-910-v6.0.0.yaml
-r-------- 1 root root 5644 4月 29 09:28 device-plugin-volcano-v6.0.0.yaml
-r-------- 1 root root 786 4月 29 09:28 Dockerfile
-r-------- 1 root root 1074 4月 29 09:28 Dockerfile-310P-1usoc
-r-------- 1 root root 4158 4月 29 09:28 faultCode.json
-r-------- 1 root root 1256 4月 29 09:28 faultCustomization.json
-r-------- 1 root root 2347 4月 29 09:28 run_for_310P_1usoc.sh
-r-------- 1 root root 1017 4月 29 09:28 SwitchFaultCode.json
>  **说明:**
1、“ascend-device-plugin/build“目录下的**ascendplugin-910.yaml**文件在“ascend-device-plugin/output/“下生成的对应文件为**device-plugin-910-v6.0.0.yaml**,作用是更新版本号。
2、边侧场景编译仅生成device-plugin二进制文件
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。