msdebug工具安装在Ascend-cann-toolkit开发套件包中,工具路径为${INSTALL_DIR}/tools/msdebug/bin/msdebug。
基于Ascend C算子的kernel侧框架执行一键式编译运行,可生成NPU侧可执行文件<kernel_name>_npu,具体操作可参考《Ascend C自定义算子开发指南》中的“核函数运行验证”章节。
$ msdebug ./add_custom_npu (msdebug) target create "./add_custom_npu" Current executable set to '/home/HwHiAiUser/projects/add_ascendc_sample/add_custom_npu' (aarch64). (msdebug)
msdebug ./add_custom_npu parameter1 parameter2 ...
export TERMINFO=xx //xx信息可通过infocmp -D命令查询。
$ msdebug python3 test_ops_custom.py (msdebug) target create "./add_custom_npu" Current executable set to '/home/HwHiAiUser/projects/add_ascendc_sample/add_custom_npu' (aarch64). (msdebug)