msopgen 算子工程后续编译没有正常生成 custom*.run
收藏回复举报
msopgen 算子工程后续编译没有正常生成 custom*.run
t('forum.solved') 已解决
发表于2026-07-09 17:05:34
0 查看

npu-smi info

+------------------------------------------------------------------------------------------------+

| npu-smi 25.5.1                   Version: 25.5.1                                               |

+---------------------------+---------------+----------------------------------------------------+

| NPU   Name                | Health        | Power(W)    Temp(C)           Hugepages-Usage(page)|

| Chip                      | Bus-Id        | AICore(%)   Memory-Usage(MB)  HBM-Usage(MB)        |

+===========================+===============+====================================================+

| 5     910B4               | OK            | 92.7        41                0    / 0             |

| 0                         | 0000:41:00.0  | 0           0    / 0          2878 / 32768         |

+===========================+===============+====================================================+

+---------------------------+---------------+----------------------------------------------------+

| NPU     Chip              | Process id    | Process name             | Process memory(MB)      |

+===========================+===============+====================================================+

| No running processes found in NPU 5                                                            |

+===========================+===============+====================================================+

命令 msopgen gen -i concat_custom.json -f aclnn -c ai_core-Ascend910B4 -lan cpp -out ConcatCustom

2026-07-09 16:42:26 (6510) - [INFO] Start to generate AI Core operator files. 

2026-07-09 16:42:26 (6510) - [INFO] Start to parse the ir template:/opt/atomgit/all/Concat_1/concat_custom.json 

2026-07-09 16:42:26 (6510) - [INFO] Start to parse the op: ConcatCustom 

2026-07-09 16:42:26 (6510) - [INFO] Start to parse the input_desc: inputs 

2026-07-09 16:42:26 (6510) - [INFO] Start to parse the output_desc: output 

2026-07-09 16:42:26 (6510) - [INFO] Start to parse the attribute: dim 

2026-07-09 16:42:26 (6510) - [INFO] Start to check the type and format between the inputs/outputs in IR template. 

2026-07-09 16:42:26 (6510) - [INFO] Start to generate a new project. 

2026-07-09 16:42:26 (6510) - [WARNING] File config.cmake lack of ASCEND_CANN_PACKAGE_PATH. Please check your config env. 

2026-07-09 16:42:26 (6510) - [WARNING] File /opt/atomgit/all/Concat_1/ConcatCustom/cmake/config.cmake already exists and will be overwrite! 

2026-07-09 16:42:26 (6510) - [INFO] File /opt/atomgit/all/Concat_1/ConcatCustom/cmake/config.cmake generated successfully. 

2026-07-09 16:42:26 (6510) - [INFO] File /opt/atomgit/all/Concat_1/ConcatCustom/op_host/concat_custom_tiling.h generated successfully. 

2026-07-09 16:42:26 (6510) - [INFO] File /opt/atomgit/all/Concat_1/ConcatCustom/op_host/concat_custom.cpp generated successfully. 

2026-07-09 16:42:26 (6510) - [INFO] File /opt/atomgit/all/Concat_1/ConcatCustom/op_kernel/concat_custom.cpp generated successfully. 

2026-07-09 16:42:26 (6510) - [INFO] File /opt/atomgit/all/Concat_1/ConcatCustom/./op_kernel/CMakeLists.txt generated successfully. 

2026-07-09 16:42:26 (6510) - [INFO] Generation completed. 

cke_22374.png

没有CmakePreset.txt 生成

cke_20708.png

现象: 后续build,没有正常生成custom_*.run

我要发帖子