| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
fix readme Co-authored-by: zhengchao0613<zhengchao45@huawei.com> # message auto-generated for no-merge-commit merge: !4340 merge master into master fix readme Created-by: zhengchao0613 Commit-by: zhengchao0613 Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> ## 关联的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!4340 | 1 个月前 | |
Restrict clang-format hook to tests Co-authored-by: xun_zhuge<zhugexun@hisilicon.com> Co-authored-by: zhangyujia77<zhangyujia37@huawei.com> # message auto-generated for no-merge-commit merge: !3238 merge update_tests_clang_format into master Restrict clang-format hook to tests Created-by: xun_zhuge Commit-by: zhangyujia77;xun_zhuge Merged-by: cann-robot Description: ## 描述 本 PR 调整 clang-format 的 pre-commit 检查范围,并对当前纳入范围的测试代码执行了一次全量格式化。 主要改动: - 将 .pre-commit-config.yaml 中 clang-format hook 的 files 范围从所有 C/C++/Ascend C 源文件收敛到 tests/ 目录:^tests/.*\.(c|h|cpp|hpp|cc|hh|cxx|hxx|asc)$。 - 移除该 hook 原有的 exclude: ^build/|tests/third_party/,避免和新的 files 范围重复维护。 - 执行 pre-commit run clang-format --all-files,按当前 .clang-format 规则格式化 tests/ 下匹配的 1521 个文件。 - 修复 tests/api/tensor_api/stub/cce_stub.h 中一处宏续行格式不稳定的问题,避免 clang-format 每次运行都继续改同一段宏。 ## 关联的Issue 无 ## 测试 已完成以下验证: - pre-commit validate-config 通过。 - pre-commit run clang-format --files tests/api/tensor_api/stub/cce_stub.h 通过。 - pre-commit run clang-format --all-files 通过。 - 提交时 pre-commit hook 通过:clang-format Passed,OAT Compliance Check Passed。 - OAT 提交检查为增量模式,最终覆盖 1521 个暂存文件,日志显示 All checks passed。 - 推送到 zhugexun/update_tests_clang_format 时远端 Git hooks 检查通过。 ## 文档更新 无文档更新。 ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 fix: Bug 修复 - [ ] ✨ feat: 新功能 - [ ] ⚡ perf: 性能优化 - [ ] ♻️ refactor: 代码重构 - [ ] 🧪 test: 新增或修改测试 - [ ] 📝 docs: 文档更新 - [x] 🔧 ci: CI/CD 配置修改 - [ ] ↩️ revert: 回退 - [x] 🧹 chore: 其他,请具体描述 See merge request: cann/asc-devkit!3238 | 2 个月前 | |
fix reserve buf used wrong buffer size Co-authored-by: chenyiyuan<chenyiyuan5@huawei.com> # message auto-generated for no-merge-commit merge: !4320 merge fix_ub_size into master fix reserve buf used wrong buffer size Created-by: chenyiyuan Commit-by: chenyiyuan Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 修复 3510 架构下 disabled reserved UBUF 场景的 UB size 计算错误。 原实现中 ASC_UB_SIZE 重复累加了 __ASC_DISABLE_VF_STACK_RESERVD_UBUF_SIZE,遗漏了 __ASC_DISABLE_RESERVD_UBUF_SIZE,导致同时开启 reserved UBUF 和 VF stack reserved 相关开关时,UB size 计算不准确。 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #xxx--> ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> - 将 test_sys_constants.cpp 和 test_disabled_mode_sys_constants.cpp 挂到: - ascendc_ut_basic_api_ascend910B1_AIV - ascendc_ut_basic_api_ascend950pr_9599_AIV_BASIC ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [x] 🐛 fix: Bug 修复 - [ ] ✨ feat: 新功能 - [ ] ⚡ perf: 性能优化 - [ ] ♻️ refactor: 代码重构 - [x] 🧪 test: 新增或修改测试 - [ ] 📝 docs: 文档更新 - [ ] 🔧 ci: CI/CD 配置修改 - [ ] ↩️ revert: 回退 - [ ] 🧹 chore: 其他,请具体描述 See merge request: cann/asc-devkit!4320 | 1 个月前 | |
feat: asc_div支持int16_t/uint16_t/int32_t/uint32_t数据类型 Co-authored-by: zhangjiru<zhangjiru1@huawei.com> # message auto-generated for no-merge-commit merge: !4424 merge feature/asc-div-support-int-types into master feat: asc_div支持int16_t/uint16_t/int32_t/uint32_t数据类型 Created-by: leozjr Commit-by: zhangjiru Merged-by: cann-robot Description: ## 描述 asc_div(reg矢量计算)当前仅支持 half 和 float 数据类型。底层 vdiv 指令在 3510 架构上已支持 int16_t/uint16_t/int32_t/uint32_t,本次为 asc_div 补齐这四种整数类型的接口实现。 具体改动: - impl/c_api/instr_impl/npu_arch_3510/vector_compute_impl/asc_div_impl.h:新增 int16_t/uint16_t/int32_t/uint32_t 四个 impl 重载,内部调用 vdiv 指令。 - impl/c_api/instr_impl/npu_arch_3510/vector_compute_impl.h:新增对应四个 wrapper 函数 asc_div,调用各自的 impl。 - include/c_api/reg_compute/reg_vector.h:新增四个接口声明。 - tests/api/c_api/npu_arch_3510/vector_compute/test_asc_div.cpp:补充四种整数类型的 UT 用例。 - docs/zh/api/SIMD-API/C-API/reg/arithmetic_compute/asc_div.md:更新函数原型,补充新增的数据类型声明。 ## 关联的Issue 关联Issue #1275 ## 测试 本地构建 ascend950pr_9599_AIV target 并运行 UT,2386 个用例全部通过,其中 asc_div 相关 6 个用例(half/float/int16_t/uint16_t/int32_t/uint32_t)均 PASSED。 ## 文档更新 更新了 docs/zh/api/SIMD-API/C-API/reg/arithmetic_compute/asc_div.md 函数原型,补充新增数据类型声明。 ## 类型标签 - [ ] 🐛 fix: Bug 修复 - [x] ✨ feat: 新功能 - [ ] ⚡ perf: 性能优化 - [ ] ♻️ refactor: 代码重构 - [ ] 🧪 test: 新增或修改测试 - [ ] 📝 docs: 文档更新 - [ ] 🔧 ci: CI/CD 配置修改 - [ ] ↩️ revert: 回退 - [ ] 🧹 chore: 其他,请具体描述 See merge request: cann/asc-devkit!4424 | 1 个月前 | |
扩展pre-commit hooks (第二批目录) Co-authored-by: Water8L<15279328600@163.com> # message auto-generated for no-merge-commit merge: !4183 merge master into master 扩展pre-commit hooks (第二批目录) Created-by: Water8L Commit-by: Water8L Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 在.pre-commit-config.yaml中根据trailing-whitespace和end-of-file-fixer hook,修改tests/api/other impl/matmul + impl/hccl + tests/other tests/api/basic_api + examples/basic_api目录下对应不合规范的文件 ## 关联的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!4183 | 1 个月前 | |
扩展pre-commit hooks (第二批目录) Co-authored-by: Water8L<15279328600@163.com> # message auto-generated for no-merge-commit merge: !4183 merge master into master 扩展pre-commit hooks (第二批目录) Created-by: Water8L Commit-by: Water8L Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 在.pre-commit-config.yaml中根据trailing-whitespace和end-of-file-fixer hook,修改tests/api/other impl/matmul + impl/hccl + tests/other tests/api/basic_api + examples/basic_api目录下对应不合规范的文件 ## 关联的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!4183 | 1 个月前 | |
扩展pre-commit hooks (第二批目录) Co-authored-by: Water8L<15279328600@163.com> # message auto-generated for no-merge-commit merge: !4183 merge master into master 扩展pre-commit hooks (第二批目录) Created-by: Water8L Commit-by: Water8L Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 在.pre-commit-config.yaml中根据trailing-whitespace和end-of-file-fixer hook,修改tests/api/other impl/matmul + impl/hccl + tests/other tests/api/basic_api + examples/basic_api目录下对应不合规范的文件 ## 关联的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!4183 | 1 个月前 | |
修复 LayoutTrait 中 dtype 与实际 Tensor dtype 不一致问题 Co-authored-by: weixin_63089733<25241214978@stu.xidian.edu.cn> # message auto-generated for no-merge-commit merge: !4372 merge fix/layout-trait-master into master 修复 LayoutTrait 中 dtype 与实际 Tensor dtype 不一致问题 Created-by: weixin_63089733 Commit-by: weixin_63089733 Merged-by: cann-robot Description: ## 描述 本次修改调整了 Tensor API 中 LayoutTrait 的职责边界,使其只描述布局相关的 C0 信息,不再保存 dtype。 改动原因是:tensor 的真实数据类型来自 MakeTensor(MakeMemPtr(ptr), layout) 中的指针类型,而不是 layout trait。原先 LayoutTrait<T, C0> 同时保存 dtype 和 C0,存在 trait 中的 T 与实际 tensor dtype 不一致的风险。 本次修改后: - LayoutTrait 只保留 C0_ELEMENT。 - 保留原有模板写法兼容性,避免影响已经发布出去的 API 使用方式。 - MakeFrameLayout<NZLayoutPtn, T> 等写法中,T 仅用于推导 C0,不作为最终 layout trait 的 dtype 来源。 - 更新相关测试,覆盖默认 trait、直接传入 dtype、显式 C0 等路径。 - 更新文档,明确 LayoutTrait、LayoutTraitDefault<T> 和直接传入 C0 的含义,避免自定义 Trait 场景表述不清。 ## 关联的Issue 无 ## 测试 - 执行 git diff --check,检查通过。 - 使用 CANN 环境对 Tensor API MakeFrameLayout / LayoutTrait 转换路径进行 smoke 编译验证。 - 验证 Tensor API Mmad 示例编译和仿真运行通过,结果校验通过。 - 新增/更新 test_tensor_api_frame.cpp 中的 static_assert,验证最终 trait 只保存布局 C0 信息。 ## 文档更新 更新以下文档,说明 LayoutTrait 只描述布局 C0,不描述 tensor dtype,并补充不同传参方式的含义: - docs/api/SIMD-API/基础API/数据结构/TensorAPI-BasicStructure/layout_structure/MakeFrameLayout.md - docs/api/SIMD-API/基础API/数据结构/TensorAPI-BasicStructure/layout_structure/MakePatternLayout.md ## 类型标签 - [ ] 🐛 fix: Bug 修复 - [ ] ✨ feat: 新功能 - [ ] ⚡ perf: 性能优化 - [x] ♻️ refactor: 代码重构 - [x] 🧪 test: 新增或修改测试 - [x] 📝 docs: 文档更新 - [ ] 🔧 ci: CI/CD 配置修改 - [ ] ↩️ revert: 回退 - [ ] 🧹 chore: 其他,请具体描述 See merge request: cann/asc-devkit!4372 | 1 个月前 | |
扩展pre-commit hooks (第二批目录) Co-authored-by: Water8L<15279328600@163.com> # message auto-generated for no-merge-commit merge: !4183 merge master into master 扩展pre-commit hooks (第二批目录) Created-by: Water8L Commit-by: Water8L Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 在.pre-commit-config.yaml中根据trailing-whitespace和end-of-file-fixer hook,修改tests/api/other impl/matmul + impl/hccl + tests/other tests/api/basic_api + examples/basic_api目录下对应不合规范的文件 ## 关联的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!4183 | 1 个月前 | |
扩展pre-commit hooks (第二批目录) Co-authored-by: Water8L<15279328600@163.com> # message auto-generated for no-merge-commit merge: !4183 merge master into master 扩展pre-commit hooks (第二批目录) Created-by: Water8L Commit-by: Water8L Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 在.pre-commit-config.yaml中根据trailing-whitespace和end-of-file-fixer hook,修改tests/api/other impl/matmul + impl/hccl + tests/other tests/api/basic_api + examples/basic_api目录下对应不合规范的文件 ## 关联的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!4183 | 1 个月前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 1 个月前 | ||
| 2 个月前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 1 个月前 |