解析Dump文件
功能说明
将Dump文件解析成.bin或.npy文件,文件中记录算子的输入、输出、workspace等信息。
产品支持情况
产品 |
是否支持 |
|---|---|
Atlas 350 加速卡 |
√ |
√ |
|
√ |
|
√ |
|
√ |
|
√ |
命令格式
python3 msaicerr.py -d path1 -out path2
参数说明
- -d或--data:必选参数,解析Dump文件时用于指定Dump文件路径,包含文件名。
- -out或--output_path:可选参数,指定解析结果文件的存放路径,如果不指定,则解析结果默认跟Dump文件存放在同一路径下。
使用示例和输出说明
python3 msaicerr.py -d /demo/extra-info/data-dump/0/exception_info.2.1.20250611171538370
输出示例如下:
[INFO] The dump file directory will be used to as the output directory of the parsed results. [INFO] Parse dump file finished, result path is: /demo/dfx/data-dump/0
根据提示,获取解析结果文件。
在执行msaicerr.py工具后,在执行msaicerr.py工具的同级目录下,会生成debug_info.txt文件,用于记录工具执行过程中的日志信息。若debug_info.txt中提示Can not read with dtype xxx,则表示存在工具不能识别的数据类型,需由用户自行安装第三方库文件,例如,若提示Can not read with dtype bfloat16,则需安装bfloat16ext库。
父主题: msaicerr工具使用指导