1 工具安装
1.1 下载链接
https://www.hiascend.com/developer/download/community/result?module=dl%2Bcann
1.2 安装指令:
./Ascend-mindx-toolbox_{
version}_linux-{
arch}.run --install
设置环境变量:
source /usr/local/Ascend/toolbox/set_env.sh
source /usr/local/Ascend/ascend-toolkit/set_env.sh
2 带宽测试
分别执行一下四个指令
ascend-dmi --bw -t d2d
ascend-dmi --bw -t d2h
ascend-dmi --bw -t h2d
ascend-dmi --bw -t p2p
参考链接:https://www.hiascend.com/document/detail/zh/mindcluster/70rc1/toolbox/toolboxug/toolboxug_0015.html
参数说明:
| 参数 | 说明 | 约束 | 是否必填 |
|---|---|---|---|
| [-bw, --bw, --bandwidth] | 使用该参数测试芯片或整卡的带宽。支持-bw,但建议使用–bw或–bandwidth。 | - | 是 |
| [-t, --type] | 指测试数据流向的分类。当使用带宽测试功能时,测试的数据流可以分为以下方向,若不填写数据流方向则默认返回h2d、d2h、d2d三个方向的带宽和总耗时。h2d:指数据从Host侧内存通过PCIe总线搬移到Device侧内存,测试整体带宽及总耗时。(使用Atlas A3 训练系列产品带宽测试功能时,测试的为HCCS平面总带宽及总耗时。)d2h:指数据从Device侧内存通过PCIe总线搬移到Host侧内存,测试整体带宽及总耗时。(使用Atlas A3 训练系列产品带宽测试功能时,测试的为HCCS平面总带宽及总耗时。)d2d:指数据从Device侧内存搬移到同一Device侧内存(主要是用于测试Device侧的内存带宽),测试整体带宽及总耗时。p2p:测试指定源头Device到目标Device的传输速率和总耗时。说明使用p2p且不指定Device时(不指定-ds和-dd参数),-s、-et和-fmt参数不生效,使用定长模式和对应默认值。如ascend-dmi --bw -t p2p -fmt json命令中,-fmt参数不生效,使用默认值normal。 | Atlas 200I/500 A2 推理产品 仅支持d2d模式,不支持使用该参数。p2p模式仅支持 Atlas 训练系列产品 、Atlas A2 训练系列产品、 Atlas 800I A2 推理产品 、Atlas |


2103

被折叠的 条评论
为什么被折叠?



