(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)