Closed
[Requirement|需求建议]: fused_infer_attention_score算子arch38下Host侧Tiling代码重构 #8673
HuLinjieAdd on 3 days agoClosed at 2 days ago
3 days ago Added label: requirement
3 days ago Assign HuLinjie as responsible person
周云飞
3 days ago Comments:
3 days ago Comments:
按职责拆分 arch38 的 Tiling 代码是一个可评估的方向,有助于厘清检查、转换和计算逻辑;同时需要兼顾文件间依赖、构建配置,以及拆分前后的行为兼容性。
关于报告中的解引用崩溃隐患,目前还需确认具体触发条件和代码位置,再评估相应的空指针检查或错误处理方式。Issue 已关联 PR,但其具体改动和合入状态尚待确认。


3 days ago Change title to "[Requirement|需求建议]: fused_infer_attention_score算子arch38下Host侧Tiling代码重构", originally titled "[Requirement|需求建议]: fused_infer_attention_score算子arch38下代码清理(解决历史解引用崩溃&函数复杂度高等问题)".
3 days ago Change title to "[Requirement|需求建议]: fused_infer_attention_score算子arch38下Host侧Tiling代码重构", originally titled "[Requirement|需求建议]: fused_infer_attention_score算子arch38下代码清理(解决历史解引用崩溃&函数复杂度高等问题)".
3 days ago Modify description of issue
3 days ago Modify description of issue
2 days ago Close issue
2 days ago changed custom state from 待办的 to 已完成
2 days ago Added label: resolved
Backgroud(背景信息)
fused_infer_attention_score 算子的 arch38 分支 host 侧 Tiling 代码存在历史遗留的解引用崩溃隐患、安全红线问题及 TOPN 等问题;同时,Tiling 逻辑集中在单个文件中,文件代码行数超过 5000 行,且单个函数行数多、参数多、圈复杂度高,导致整体复杂度高、职责混杂,可读性与可维护性较差。
Benefit / Necessity (价值/作用)
Design(设计方案)
将原先集中在一个文件中的 Tiling 逻辑按职责拆分为多个独立文件:
并同步更新 CMakeLists.txt 构建配置与相关头文件。
关联 PR:https://gitcode.com/cann/ops-transformer/pull/16968