Closed
[Requirement|需求建议]: dynamic_mx_quant_with_dual_axis/threshold_grad_v2_d 算子适配 ascend960dt #7691
hejc_hwAdd on  23 days agoClosed at  23 days ago
hejc_hw
hejc_hw
23 days ago Create

Backgroud(背景信息)

描述
为 dynamic_mx_quant_with_dual_axis、threshold_grad_v2_d 及依赖算子 threshold_grad_v2 增加 ascend960dt 支持。950 与 960dt 共享 arch35 AICore,适配核心是注册 960dt 芯片变体,并修正按 NpuArch 分发的门控。

dynamic_mx_quant_with_dual_axis:CMakeLists / def.cpp 注册 ascend960dt;新增 op_host/config/ascend960dt 二进制配置;ascendc_config.json 的 compute_units 增加 ascend960dt
dynamic_mx_quant_with_dual_axis kernel:浮点溢出模式门控由 NPU_ARCH == 3510 扩展为 3510 || 9201 || 9202(960dt 编译为 NPU_ARCH == 9201,否则该分支被跳过,与 950 行为不一致)
threshold_grad_v2_d:CMakeLists / def.cpp 注册 ascend960dt
threshold_grad_v2:一并适配;aclnnThresholdBackward 在 regbase 路径会调用该算子

Origin(信息来源)

vector

Benefit / Necessity (价值/作用)

描述
为 dynamic_mx_quant_with_dual_axis、threshold_grad_v2_d 及依赖算子 threshold_grad_v2 增加 ascend960dt 支持。950 与 960dt 共享 arch35 AICore,适配核心是注册 960dt 芯片变体,并修正按 NpuArch 分发的门控。

dynamic_mx_quant_with_dual_axis:CMakeLists / def.cpp 注册 ascend960dt;新增 op_host/config/ascend960dt 二进制配置;ascendc_config.json 的 compute_units 增加 ascend960dt
dynamic_mx_quant_with_dual_axis kernel:浮点溢出模式门控由 NPU_ARCH == 3510 扩展为 3510 || 9201 || 9202(960dt 编译为 NPU_ARCH == 9201,否则该分支被跳过,与 950 行为不一致)
threshold_grad_v2_d:CMakeLists / def.cpp 注册 ascend960dt
threshold_grad_v2:一并适配;aclnnThresholdBackward 在 regbase 路径会调用该算子

Design(设计方案)

likedislike
yuning_chenyuning_chenCollaborators
23 days ago Assign gcw_A7q07QFY as responsible person
CANN-robotCANN-robotCollaborators
23 days ago Close issue
CANN-robotCANN-robotCollaborators
23 days ago Added label: resolved