Pull Request has been successfully merged by CANN-robot.
(Thank you for 陈展熹's contribution.)变更摘要
此 PR 为 ExpandIntoJaggedPermute 算子新增 Ascend950(arch35)SIMT 实现,同时保留既有 Ascend910B(arch22)实现。核心变更包括:将原有 Host tiling 按架构拆分为 arch22/ 和 arch35/ 两个独立目录;新增 arch35 的 Kernel 入口、SIMT 算法头文件、40 字节 TilingData 结构体及 TilingKey 定义;新增 InferShape/InferShapeRange/InferDataType 实现,支持 UnknownRank、UnknownDim 及混合已知/未知 shape;更新算子定义注册,为 Ascend950 开启动态 shape、动态 rank 等编译特性;补充对应的 binary 配置、Host UT 和 Kernel UT。
主要改动
-
架构拆分与 arch35 Host Tiling 新增:原有
expand_into_jagged_permute_tiling.cpp/.h移动至arch22/子目录;新增arch35/expand_into_jagged_permute_tiling.cpp,实现ExpandIntoJaggedPermuteTilingFunc完整 tiling 流程,包含对 dtype、format、rank、shape 关系、offset/P 关系、output_size、view 边界、物理字节溢出及平台资源的根因级校验。 -
arch35 SIMT Kernel 实现:新增
op_kernel/arch35/expand_into_jagged_permute_simt.h,实现双路径 SIMT 算法——基于ShouldUseOutputCentric的启发式选择,在ExpandIntoJaggedPermuteSimt(段驱动,支持 strided output)和ExpandIntoJaggedPermuteOutputCentricSimt(输出驱动)之间动态切换,入口文件expand_into_jagged_permute.cpp通过EXPAND_JAGGED_MODE_OUTPUT_BLOCK模式调度。 -
TilingData 与 TilingKey 定义:新增
expand_into_jagged_permute_tiling_data.h,定义 40 字节ExpandIntoJaggedPermuteTilingData结构体(含segmentCount、outputSize、perCoreOutput、outputStride、needCoreNum、reserved字段,附static_assert保障 ABI 布局);新增expand_into_jagged_permute_tiling_key.h,声明EXPAND_JAGGED_MODE_OUTPUT_BLOCK调度模式及模板参数选择。 -
InferShape 能力补齐:新增
expand_into_jagged_permute_infershape.cpp,实现InferShapeExpandIntoJaggedPermute(支持UnknownRank/UnknownDim及混合场景,输出固定推导为[output_size])、InferShapeRangeExpandIntoJaggedPermute(同步输出确定 min/max range)和InferDataTypeExpandIntoJaggedPermute(校验输入为DT_INT32或DT_UNDEFINED,输出固定为DT_INT32)。 -
算子定义更新与 Ascend950 编译配置:
expand_into_jagged_permute_def.cpp新增ascend950的OpAICoreConfig,启用DynamicCompileStaticFlag、DynamicRankSupportFlag、DynamicShapeSupportFlag和PrecisionReduceFlag;新增ascend950/expand_into_jagged_permute_binary.jsonbinary 配置。


Thanks for your pull-request.
The full list of commands accepted by me can be found at here.
You can get sig-info at here.
You can self-configure the PR merge rules for this repository. For more details, please refer to Here.
For more, you also can visit HICANN.
PR Approval Progress
✅ Congratulations! All modules have met the lgtm and approve requirements.
Module Approval Details
| module | lgtm status | approve status |
|---|---|---|
| */*/README.md | ✅ 汤平川, 陈娇, 钱泽洪, 上官秦南 (4/2) | ✅ 陈娇 (1/1) |
| */*/docs/acl*.md | ✅ 陈娇, 上官秦南, 汤平川, 钱泽洪 (4/2) | ✅ 陈娇 (1/1) |
| */*/op_host/*_def.cpp | ✅ 汤磊, 钱泽洪, 上官秦南, 汤平川 (4/2) | ✅ 汤磊 (1/1) |
| docs | ✅ 陈娇, 汤平川 (2/2) | ✅ 陈娇 (1/1) |
| index | ✅ 汤平川, 钱泽洪, 上官秦南 (3/2) | ✅ 汤平川, 钱泽洪, 上官秦南 (3/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
yourealize, thanks for your pull request. All authors of the commits have signed the CLA. 👍


The MR can not be merged, because of CodeReview discussion not resolved
If you want to solve this problem, you can click here to do it in the FAQs.


Pull Request 已合并或已关闭。
If you want to solve this problem, you can click here to do it in the FAQs.


描述
ExpandIntoJaggedPermute算子新增Ascend950(arch35)SIMT实现,同时保留既有Ascend910B(arch22)实现和现有ACLNN/ST/示例交付件。
关联的issue
Close #6134
测试
文档更新
类型标签
AI/Agent 生成声明
代码来源:
人工审查:已完成
测试验证:已通过
合规检查:已完成