如果info.txt中给出如下分析结论,一般为地址非法错误:
"**********************Root cause conclusion******************" Please check addrs. The addr of input/output is used but not alloc, details in "4. Input and output of node"
同时在info.txt文件中“4. Input and output of node”处会有如下信息:
****************4. Input and output of node******************* *[ERROR]input[1] is out of range *[ERROR]input[2] is out of range input[0] addr: 0x124080042000 end_addr:0x124080042100 size: 0x100 input[1] addr: 0xaaaaaaaa end_addr:0xaaaaaab2 size: 0x8 input[2] addr: 0x0 end_addr:0x4 size: 0x4 output[0] addr: 0x124080052000 end_addr:0x124080052008 size: 0x8 arg[4][0x1240003E5070] cannot found alloc log, if it is not tiling_gm, please check arg[2][0x0] cannot found alloc log, if it is not tiling_gm, please check workspace_bytes:0
msaicerr工具检查Device上内存申请成功的地址、Device上内存释放的地址相关的日志,通过计算这两个值的差集确定可用的内存地址范围,如果input、output地址不在这个范围内,则会报错。
针对地址非法错误,一般需要确认算子地址是否合法。有以下情况: