[Ascend C] 自定义算子未生成安装包 run后缀文件
收藏回复举报
[Ascend C] 自定义算子未生成安装包 run后缀文件
t('forum.solved') 已解决
发表于2025-02-16 16:14:28
0 查看

问题描述:

参考 https://www.hiascend.com/document/detail/zh/CANNCommunityEdition/800alpha001/devguide/opdevg/ascendcopdevg/atlas_ascendc_10_0006.html中的自定义算子工程的算子开发,执行build.sh后没有生成期望的安装包custom_opp_<target os>_<target architecture>.run

问题复现:

基于https://gitee.com/wk911/samples/tree/master/operator/ascendc/0_introduction/2_add_frameworklaunchlite的样例工程执行bash install.sh -v Ascend310P3

cke_9144.png

  在上述的脚本   install.sh 中其实就是封装了 自定义算子 工程的操作步骤

msopgen gen -i AddCustom.json -f aclnn -c ai_core-${SOC_VERSION} -lan cpp -out CustomOp 生成模版工程

cp -rf AddCustom/* CustomOp 将需要更新的算子定义等替换自动生成的文件

bash build.sh 则应该是需要生成安装包

cke_3103.png

我要发帖子