| Files | Last commit | Last update |
|---|---|---|
feat: 9201架构新增类型转换C API接口 (add e6m22bfloat16 e8m02bfloat16 half2e4m3 and half2e5m2 及asc_cast/asc_cast_merge) Co-authored-by: wuzhengzhen<wuzhengzhen@huawei.com> # message auto-generated for no-merge-commit merge: !6623 merge test_half2xxx_from_master into master feat: 9201架构新增类型转换C API接口 (add e6m22bfloat16 e8m02bfloat16 half2e4m3 and half2e5m2 及asc_cast/asc_cast_merge) Created-by: wuzhengzhen Commit-by: wuzhengzhen Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 为 9201 新增 half -> FP8 E4M3FN / E5M2 转换 C API:asc_half2e4m3_rn*、asc_half2e5m2_rn*,覆盖饱和与非饱和、EVEN/ODD 位置、zeroing/merging、返回值重载及 _v2 形式;同时接入通用 asc_cast / asc_cast_merge。声明见 include/c_api/reg_compute/reg_convert.h:8546,9201 实现见 impl/c_api/reg_base_impl/ npu_arch_9201/reg_convert_intf_impl.h:2413。 - 补齐相关转换能力:float -> half 的 merge 形式,E6M2/E8M0 -> bfloat16,以及 E6M2 -> bfloat16 的 reciprocal 转换。 - 新增寄存器打包 API:asc_pack_to_low/high 和多种整数、half、float 类型的 asc_pack_datablock。 - 新增 FP8 E6M2 的 asc_gather / asc_gather_datablock 重载。 - 更新公共导出、host-header checker、类型别名及 CPU stub,使上述接口能完成 host 编译与 UT mock。 - 新增 8 个 UT 文件,覆盖 E4M3/E5M2 转换、float2half、E6M2/E8M0 转 BF16、reciprocal 转换、pack 和 E6M2 gather;并扩展 VCVT 测试辅助宏以校验 round、saturation、position、mode 等指令参数。 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #xxx--> ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 fix: Bug 修复 - [x] ✨ feat: 新功能 - [ ] ⚡ perf: 性能优化 - [ ] ♻️ refactor: 代码重构 - [ ] 🧪 test: 新增或修改测试 - [ ] 📝 docs: 文档更新 - [ ] 🔧 ci: CI/CD 配置修改 - [ ] ↩️ revert: 回退 - [ ] 🧹 chore: 其他,请具体描述 See merge request: cann/asc-devkit!6623 | 1 month ago | |
add kernel tla about icache preload flag Co-authored-by: wuyang_hw<wuyang74@hisilicon.com> # message auto-generated for no-merge-commit merge: !6525 merge icache_preload_tlv into master add kernel tla about icache preload flag Created-by: wuyang_hw Commit-by: wuyang_hw Merged-by: cann-robot Description: ## 描述 为 dav-2201 和 dav-3510 的指令缓存预加载接口增加二进制元数据标记,使编译产物能够标识 kernel 是否使用 ICache preload。 - 覆盖 basic_api 的 AscendC::ICachePreLoad 和 C API 的 asc_icache_preload。 - 在接口实现中使用 used 和 section(".ascend.meta") 属性,将 TLV 标记写入设备侧 .o。 - 新增 B_TYPE_ICACHE_PRELOAD_FLAG,类型值为 7,数据长度为 4 字节。 - 数据字段由 uint16_t preload 标记和 uint16_t reserved 组成,分别初始化为 1、0,保留后续扩展空间。 ## 关联的Issue NA ## 测试 - 使用 readelf 检查设备侧 .o:开启 preload 时存在 type=7、len=4、flag=1、reserved=0 的 TLV;关闭时不存在该标记。 ## 文档更新 NA ## 类型标签 - [ ] 🐛 fix: Bug 修复 - [x] ✨ feat: 新功能 - [ ] ⚡ perf: 性能优化 - [ ] ♻️ refactor: 代码重构 - [ ] 🧪 test: 新增或修改测试 - [ ] 📝 docs: 文档更新 - [ ] 🔧 ci: CI/CD 配置修改 - [ ] ↩️ revert: 回退 - [ ] 🧹 chore: 其他,请具体描述 See merge request: cann/asc-devkit!6525 | 1 month ago | |
功能:新增 9201 架构 reg 矢量计算接口及 UT Co-authored-by: zhangjiru<zhangjiru1@huawei.com> # message auto-generated for no-merge-commit merge: !6225 merge feat/capi_9201_vec_compute into master 功能:新增 9201 架构 reg 矢量计算接口及 UT Created-by: leozjr Commit-by: zhangjiru Merged-by: cann-robot Description: ## 描述 新增 9201(ascend960dt)架构 reg 寄存器矢量计算接口及对应 UT,并对公共头文件架构分派进行适配。 **接口实现** - 新增 impl/c_api/reg_base_impl/npu_arch_9201/ 下 4 个架构私有实现文件: - reg_fused_intf_impl.h:新增 asc_fma/asc_fms/asc_fnma/asc_fnms(返回值形式),映射 vfma/vfnms/vfms/vfnma - reg_logic_intf_impl.h:新增无符号位移接口 asc_shiftleft/asc_shiftright/asc_shiftleft_scalar/asc_shiftright_scalar(9201 为无符号 shift 类型) - reg_reduce_intf_impl.h:新增 asc_datablock_reduce_max/min/sum_stride、asc_pair_reduce_sum_stride、asc_reduce_max/min/sum_last_elem,映射 vcg*v2/vcpaddv2/vc*v2 - reg_permute_sel_intf_impl.h:新增 asc_intlv_half_low/high、asc_deintlv_even/odd(含 b8/b16/b32 谓词变体),映射 vintlvv2/vdintlvv2 - 所有新接口均提供 dst-ref 与 return-by-value 两种形式(fused 系列仅返回值形式) **架构分派适配** - signed shift 接口迁移至 npu_arch_3510/reg_logic_intf_impl.h(3510 独有有符号类型) - 公共 impl 头(reg_fused/reg_logic/reg_permute_sel)增加 #elif __NPU_ARCH__ == 9201 分派,reg_reduce 增加 #if __NPU_ARCH__ == 9201 - include/c_api 各 compute 头守卫扩展为 (3510 || 9201),asc_simd.h / asc_reg_vector.h 放行 9201 **公共类型补充** - include/c_api/defs/type.h 新增 vector_fp8_e6m2_t、vector_uint4x2_t、vector_hifloat4x2_t **UT** - 新增 tests/api/c_api/npu_arch_9201/vector_compute/ 下 9 个测试文件,覆盖上述全部新接口 - tests/api/c_api/stub/cce_stub.h 新增 9201 v2 指令 stub 及 fp8_e6m2/hif4x2 host 类型 ## 关联的Issue 不涉及 ## 测试 - 本地编译并运行 UT: - ascendc_ut_c_api_ascend960dt_AIV(9201):184 个测试全部通过 - ascendc_ut_c_api_ascend950pr_9599_AIV(3510):3324 个测试全部通过(回归无影响) ## 文档更新 不涉及 ## 类型标签 - [x] ✨ feat: 新功能 - [x] 🧪 test: 新增或修改测试 See merge request: cann/asc-devkit!6225 | 1 month ago | |
同步ascend960相关代码 Co-authored-by: Ekoxier<husizhe@huawei.com> Co-authored-by: hyolee<lihongbo14@huawei.com> Co-authored-by: maohaodi<maohaodi@huawei.com> Co-authored-by: xumengxuan<xumengxuan2@huawei.com> Co-authored-by: zhangfeifan0709<zhangfeifan7@huawei.com> Co-authored-by: zhangjiru<zhangjiru1@huawei.com> # message auto-generated for no-merge-commit merge: !6755 merge adapt_121 into master 同步ascend960相关代码 Created-by: maohaodi Commit-by: maohaodi;Ekoxier;zhangjiru;xumengxuan;hyolee;zhangfeifan0709 Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 同步ascend960相关代码,包括basic_api, c_api, tensor_api等,不含adv_api ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #xxx--> ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 fix: Bug 修复 - [ ] ✨ feat: 新功能 - [ ] ⚡ perf: 性能优化 - [ ] ♻️ refactor: 代码重构 - [ ] 🧪 test: 新增或修改测试 - [ ] 📝 docs: 文档更新 - [ ] 🔧 ci: CI/CD 配置修改 - [ ] ↩️ revert: 回退 - [ ] 🧹 chore: 其他,请具体描述 See merge request: cann/asc-devkit!6755 | 1 month ago | |
同步ascend960相关代码 Co-authored-by: Ekoxier<husizhe@huawei.com> Co-authored-by: hyolee<lihongbo14@huawei.com> Co-authored-by: maohaodi<maohaodi@huawei.com> Co-authored-by: xumengxuan<xumengxuan2@huawei.com> Co-authored-by: zhangfeifan0709<zhangfeifan7@huawei.com> Co-authored-by: zhangjiru<zhangjiru1@huawei.com> # message auto-generated for no-merge-commit merge: !6755 merge adapt_121 into master 同步ascend960相关代码 Created-by: maohaodi Commit-by: maohaodi;Ekoxier;zhangjiru;xumengxuan;hyolee;zhangfeifan0709 Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 同步ascend960相关代码,包括basic_api, c_api, tensor_api等,不含adv_api ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #xxx--> ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 fix: Bug 修复 - [ ] ✨ feat: 新功能 - [ ] ⚡ perf: 性能优化 - [ ] ♻️ refactor: 代码重构 - [ ] 🧪 test: 新增或修改测试 - [ ] 📝 docs: 文档更新 - [ ] 🔧 ci: CI/CD 配置修改 - [ ] ↩️ revert: 回退 - [ ] 🧹 chore: 其他,请具体描述 See merge request: cann/asc-devkit!6755 | 1 month ago | |
功能:新增 9201 架构 reg 矢量计算接口及 UT Co-authored-by: zhangjiru<zhangjiru1@huawei.com> # message auto-generated for no-merge-commit merge: !6225 merge feat/capi_9201_vec_compute into master 功能:新增 9201 架构 reg 矢量计算接口及 UT Created-by: leozjr Commit-by: zhangjiru Merged-by: cann-robot Description: ## 描述 新增 9201(ascend960dt)架构 reg 寄存器矢量计算接口及对应 UT,并对公共头文件架构分派进行适配。 **接口实现** - 新增 impl/c_api/reg_base_impl/npu_arch_9201/ 下 4 个架构私有实现文件: - reg_fused_intf_impl.h:新增 asc_fma/asc_fms/asc_fnma/asc_fnms(返回值形式),映射 vfma/vfnms/vfms/vfnma - reg_logic_intf_impl.h:新增无符号位移接口 asc_shiftleft/asc_shiftright/asc_shiftleft_scalar/asc_shiftright_scalar(9201 为无符号 shift 类型) - reg_reduce_intf_impl.h:新增 asc_datablock_reduce_max/min/sum_stride、asc_pair_reduce_sum_stride、asc_reduce_max/min/sum_last_elem,映射 vcg*v2/vcpaddv2/vc*v2 - reg_permute_sel_intf_impl.h:新增 asc_intlv_half_low/high、asc_deintlv_even/odd(含 b8/b16/b32 谓词变体),映射 vintlvv2/vdintlvv2 - 所有新接口均提供 dst-ref 与 return-by-value 两种形式(fused 系列仅返回值形式) **架构分派适配** - signed shift 接口迁移至 npu_arch_3510/reg_logic_intf_impl.h(3510 独有有符号类型) - 公共 impl 头(reg_fused/reg_logic/reg_permute_sel)增加 #elif __NPU_ARCH__ == 9201 分派,reg_reduce 增加 #if __NPU_ARCH__ == 9201 - include/c_api 各 compute 头守卫扩展为 (3510 || 9201),asc_simd.h / asc_reg_vector.h 放行 9201 **公共类型补充** - include/c_api/defs/type.h 新增 vector_fp8_e6m2_t、vector_uint4x2_t、vector_hifloat4x2_t **UT** - 新增 tests/api/c_api/npu_arch_9201/vector_compute/ 下 9 个测试文件,覆盖上述全部新接口 - tests/api/c_api/stub/cce_stub.h 新增 9201 v2 指令 stub 及 fp8_e6m2/hif4x2 host 类型 ## 关联的Issue 不涉及 ## 测试 - 本地编译并运行 UT: - ascendc_ut_c_api_ascend960dt_AIV(9201):184 个测试全部通过 - ascendc_ut_c_api_ascend950pr_9599_AIV(3510):3324 个测试全部通过(回归无影响) ## 文档更新 不涉及 ## 类型标签 - [x] ✨ feat: 新功能 - [x] 🧪 test: 新增或修改测试 See merge request: cann/asc-devkit!6225 | 1 month ago |
| Files | Last commit | Last update |
|---|---|---|
| 1 month ago | ||
| 1 month ago | ||
| 1 month ago | ||
| 1 month ago | ||
| 1 month ago | ||
| 1 month ago |