Closed
[Requirement|需求建议]: Index 算子支持 ascend960dt/960pr 平台(DV121 DMA 路径) #6850
xuejinghuiAdd on 24 days agoClosed at 24 days ago
24 days ago Added label: requirement
Xxuejinghui
24 days ago Change title to "[Requirement|需求建议]: # [Requirement|需求建议]: Index 算子支持 ascend960dt/960pr 平台(DV121 DMA 路径) ## Background(背景信息) Index 算子当前仅支持 ascend950/ascend350 等平台,在 ascend960dt/960pr(A6/DV121)上未注册,无法在 960 环境运行。 960", originally titled "[Requirement|需求建议]: 11".
24 days ago Change title to "[Requirement|需求建议]: # [Requirement|需求建议]: Index 算子支持 ascend960dt/960pr 平台(DV121 DMA 路径) ## Background(背景信息) Index 算子当前仅支持 ascend950/ascend350 等平台,在 ascend960dt/960pr(A6/DV121)上未注册,无法在 960 环境运行。 960", originally titled "[Requirement|需求建议]: 11".
Xxuejinghui
24 days ago Change title to "[Requirement|需求建议]: Index 算子支持 ascend960dt/960pr 平台(DV121 DMA 路径)", originally titled "[Requirement|需求建议]: # [Requirement|需求建议]: Index 算子支持 ascend960dt/960pr 平台(DV121 DMA 路径) ## Background(背景信息) Index 算子当前仅支持 ascend950/ascend350 等平台,在 ascend960dt/960pr(A6/DV121)上未注册,无法在 960 环境运行。 960".
24 days ago Change title to "[Requirement|需求建议]: Index 算子支持 ascend960dt/960pr 平台(DV121 DMA 路径)", originally titled "[Requirement|需求建议]: # [Requirement|需求建议]: Index 算子支持 ascend960dt/960pr 平台(DV121 DMA 路径) ## Background(背景信息) Index 算子当前仅支持 ascend950/ascend350 等平台,在 ascend960dt/960pr(A6/DV121)上未注册,无法在 960 环境运行。 960".
24 days ago Modify description of issue
xuejinghui
24 days ago Comments:
24 days ago Comments:
/assign


24 days ago Assign xuejinghui as responsible person
24 days ago Close issue
24 days ago Added label: resolved
[Requirement|需求建议]: Index 算子支持 ascend960dt/960pr 平台(DV121 DMA 路径)
Background(背景信息)
Index 算子当前仅支持 ascend950/ascend350 等平台,在 ascend960dt/960pr(A6/DV121)上未注册,无法在 960 环境运行。
960 平台引入 GatherDataCopy(DMA gather)能力,对于大输入的 full-load 场景,可将 input 留 GM 直接按偏移 gather,避免整表载入 UB,显著降低 UB 占用并提升大 shape 场景性能。需要为 Index 新增 DMA 路径,使 full-load 模板在大输入单维索引(1D 及 2D MASK_MODE_0)场景下走 GatherDataCopy。
同时,现有实现直接复用 950 路径在 960 上存在两个缺陷需要一并解决:
Origin(信息来源)
算子组 960 平台适配专项(ops-nn 仓 960_op 分支)。
Benefit / Necessity(价值/作用)
Design(设计方案)
总体思路
复用 arch35 full-load tiling 框架,新增 DMA 模板类型与独立 kernel,960 专有逻辑全部用
__NPU_ARCH__ == 9201/9202宏隔离,其他平台零影响。tiling 侧(op_host/arch35/index_tiling_full_load.cpp)
kernel 侧(op_kernel/arch92/index_full_load_dma.h,新增)
整文件包在
#if __NPU_ARCH__ == 9201 || 9202内,仅在 960 编译:模板注册与门禁
#if (!defined(__CCE_AICORE__) || __NPU_ARCH__ == 9201 || 9202)包裹(参照 qbmmv3 先例);验证