| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
TransQuantParamV2 和 QuantMatmulActivationQuant 新增 ascend350 平台支持 Co-authored-by: guiruoyu<guiruoyu@h-partners.com> # message auto-generated for no-merge-commit merge: !10402 merge codex/trans-quant-param-v2-ascend350 into master TransQuantParamV2 和 QuantMatmulActivationQuant 新增 ascend350 平台支持 Created-by: guiruoyu Commit-by: guiruoyu Merged-by: cann-robot Description: 为 TransQuantParamV2 和 QuantMatmulActivationQuant 新增 ascend350 支持,沿用 ascend950 的实现与配置。参考:https://gitcode.com/cann/ops-math/pull/5489 。 - TransQuantParamV2:新增 AICore 注册及 ascend350 二进制配置,加入 ascendc_config.json 编译单元。 - QuantMatmulActivationQuant:新增 AICore 注册,并在 add_kernel_sources 中增加 ascend350,复用 arch35 内核及 auto_sync=false;同时覆盖 aclnnQuantMatmulActivationQuant 和 aclnnQuantMatmulActivationQuantWeightNz 两个接口。 额外扫描了上述算子的 ACLNN、tiling、kernel、公共 SoC 映射及 QuantBatchMatmulV3 依赖。ND/WeightNz 共用同一算子,使用 DAV_3510 架构判断;依赖已包含 ascend350。QuantMatmulActivationQuant 使用现有 CMake 配置生成机制,无独立 ascend950 binary.json/simplified key 需要复制。 验证:JSON 解析及二进制配置一致性、git diff --check 通过;执行 CMake 脚本(以桩函数捕获注册参数)验证 QuantMatmulActivationQuant 的 ascend950/ascend350 编译单元、arch35 内核入口和 auto_sync=false。当前环境未安装 CANN,未执行设备编译、UT/ST 和真机验证。 InferShape 补充:TransQuantParamV2 的 QbmmDavidSupportSoc 白名单加入 Ascend350,使 scale=[1]、offset=[N] 时按既有广播规则推导输出为 [N]。本次仅修改白名单;单行差异核对及 git diff --check 通过,未执行 CANN UT 或真机验证。 See merge request: cann/ops-nn!10402 | 5 天前 | |
feat: 算子仓适配Ascend5162A芯片编译 Co-authored-by: wuxuening<wuxuening2@huawei.com> # message auto-generated for no-merge-commit merge: !10554 merge feat/ascend5162a-build-support into master feat: 算子仓适配Ascend5162A芯片编译 Created-by: wuxuening Commit-by: wuxuening Merged-by: cann-robot Description: ## 描述 算子仓适配 Ascend5162A 芯片编译:在编译框架(CMakeLists、build 脚本、SOC 映射)与 UT 桩代码中注册 ascend5162a 计算单元,支持通过 --soc=ascend5162a 编译输出 5162A 算子包。 改动清单(8 个文件): | 文件 | 改动 | |---|---| | CMakeLists.txt | ASCEND_ALL_COMPUTE_UNIT 增加 ascend5162a | | build.sh | SUPPORT_COMPUTE_UNIT_SHORT 增加 ascend5162a,usage 说明同步 | | scripts/kernel/binary_script/build_env.sh | SOC_MAP 增加 Ascend5162A | | scripts/util/const_var.py | SOC_MAP_EXT 增加 ascend5162a → Ascend5162A | | scripts/util/opdesc_parser.py | SOC_TO_SHORT_SOC_MAP 增加 ascend5162a | | tests/ut/common/tiling_case_executor.cpp | soc 映射表增加 ascend5162a | | tests/ut/op_api/stub/opdev/platform.cpp | ASCEND5162A ToString 映射 | | tests/ut/op_api/stub/opdev/platform.h | SocVersion 枚举增加 ASCEND5162A | ## 关联的Issue https://gitcode.com/cann/ops-nn/issues/5899 ## 测试 本地环境(CANN 9.2.0,aarch64)执行 build.sh --soc=ascend5162a,编译通过并成功生成算子包 cann-5162a-ops-nn_9.2.0_linux-aarch64.run;pre-commit 全量检查通过。 ## 文档更新 无 ## 类型标签 - [ ] Bug修复 - [x] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: See merge request: cann/ops-nn!10554 | 9 天前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 5 天前 | ||
| 9 天前 |