已关闭
[Bug-Report|缺陷反馈]: experimental/moe/moe_ffn 算子自定义包编译失败 #5237
weihao18创建于  9月11日关闭于  9月11日
weihao18成员
9月11日 创建

Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.

Describe the current behavior / 问题描述 (Mandatory / 必填)

experimental/moe/moe_ffn 算子自定义包编译失败,报错:

g++: error: ***/ops-transformer/build/autogen/aclnn_moe_ffn_tiling.cpp: No such file or directory
g++: fatal error: no input files

Environment Information / 环境信息 (Mandatory / 必填)

A2/A3/A5

Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)

bash build.sh --pkg --experimental --soc=ascend910b --vendor_name=experimental_910b -j16
bash build.sh --pkg --experimental --soc=ascend910_93 --vendor_name=experimental_910_93 -j16
bash build.sh --pkg --experimental --soc=ascend950 --vendor_name=experimental_950 -j16

Describe the expected behavior / 预期结果 (Mandatory / 必填)

编译正常

g++: error: ***/ops-transformer/build/autogen/aclnn_moe_ffn_tiling.cpp: No such file or directory
g++: fatal error: no input files

Special notes for this issue/备注 (Optional / 选填)

likedislike
Wweihao18成员
9月11日 添加了label:bug-report
CANN-robotCANN-robot成员
9月11日 关闭了 issue
CANN-robotCANN-robot成员
9月11日 添加了label:resolved
周云飞
周云飞成员
9 天前 评论:

您好,感谢反馈!

问题分析

缺失的 aclnn_moe_ffn_tiling.cpp 对应构建阶段把 moe_ffn_tiling.cpp 也当成需要生成 ACLNN 包装代码的算子定义源文件。源文件名去除 _def 后仍为 moe_ffn_tiling,因此产生了并不存在的包装文件目标,随后 g++ 报文件不存在;这属于构建源分类问题。

处理方向

关联 PR !11755 已合入 master:通用构建生成逻辑跳过没有 _def 后缀的源文件,MoeFFN 将 tiling 源从 ACLNN 目标移出、保留在 optiling 目标,并通过 IMPL_OP_OPTILING(MoeFFN).Tiling(TilingMoeFFN) 注册,替代 OpDef 中直接绑定 Tiling 的方式。在 cann/ops-transformer 提交 29f3b8185af2ce772af1ba7b9ddf2b47f2100a01 中,源文件过滤 和 MoeFFN 的目标分类 均可核对。PR 中记录了作者的构建与冒烟验证;本次未执行 A2/A3/A5 编译,因此这里确认的是该缺失文件的构建修正,不是所有平台完整包均已实测通过。

likedislike