ascend info blocks
输入以下命令查询算子运行的block信息,*所在行代表当前聚焦的block,包括device id、stream id、task id、block id。
(msdebug) ascend info blocks
Device Stream Task Block
* 1 3 0 0
1 3 0 1
输入以下命令显示所运行的block在当前中断处的代码。
(msdebug) ascend info blocks -d
Current stop state of all blocks:
[* CoreId 1, Block 0]
* thread #1, name = 'add_custom_npu', stop reason = breakpoint 1.1
frame #0: 0x000000000000380c device_debugdata`::add_custom(uint8_t *__restrict, uint8_t *__restrict, uint8_t *__restrict) [inlined] KernelAdd::CopyOut(this=0x000000000016a9b8, progress=0) at add_custom.cpp:85:9
82 // copy progress_th tile from local tensor to global tensor
83 DataCopy(zGm[progress * TILE_LENGTH], zLocal, TILE_LENGTH);
84 // free output tensor for reuse
-> 85 outQueueZ.FreeTensor(zLocal);
86 }
87
88 private:
[CoreId 2, Block 1]
* thread #1, name = 'add_custom_npu', stop reason = breakpoint 1.1
frame #0: 0x000000000000380c device_debugdata`::add_custom(uint8_t *__restrict, uint8_t *__restrict, uint8_t *__restrict) [inlined] KernelAdd::CopyOut(this=0x000000000016e9b8, progress=0) at add_custom.cpp:85:9
82 // copy progress_th tile from local tensor to global tensor
83 DataCopy(zGm[progress * TILE_LENGTH], zLocal, TILE_LENGTH);
84 // free output tensor for reuse
-> 85 outQueueZ.FreeTensor(zLocal);
86 }
87
88 private:
(msdebug)
父主题: 信息展示