| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
Ascend 950PR/Ascend 950DT CAPI 新增支持标量 atomic 计算 Co-authored-by: leozjr<zhangjiru1@huawei.com> # message auto-generated for no-merge-commit merge: !3041 merge master into master Ascend 950PR/Ascend 950DT CAPI 新增支持标量 atomic 计算 Created-by: leozjr Commit-by: zhangjiru;leozjr Merged-by: cann-robot Description: ## 描述 将标量计算 atomic 操作 C API 从 SIMT 层迁移至 npu_arch_3510 (A5) 平台,并补充完整的单元测试。 **标量接口迁移到A5:** - 新增 11 个 atomic 操作的 impl 实现头文件( asc_atomic_add/sub/or/xor/and/max/min/inc/dec/exch/cas) - 新增 scalar_compute_impl.h 统一入口头文件,包含所有标量计算实现 - 在 include/c_api/scalar_compute/scalar_compute.h 中补充接口声明 - 更新 device_atomic_functions.h 和 device_atomic_functions_impl.h 适配迁移 - 为上述 11 个 atomic 操作各新增一个 UT 文件 - 每个 UT 覆盖 int32_t、uint32_t、float、int64_t、uint64_t 五种数据类型 - 使用 MockCPP 对底层硬件指令函数进行 mock 验证 ## 关联的Issue https://gitcode.com/cann/asc-devkit/issues/978 ## 测试 - 编译通过:cmake --build build --target ascendc_ut_c_api_ascend950pr_9599_AIV -j8 - 单元测试通过:使用 --gtest_filter 过滤条件运行,11 个 atomic 操作共 55 个用例全部 PASSED ## 文档更新 无 ## 类型标签 - [ ] 🐛 fix: Bug 修复 - [x] ✨ feat: 新功能 - [ ] ⚡ perf: 性能优化 - [ ] ♻️ refactor: 代码重构 - [x] 🧪 test: 新增或修改测试 - [ ] 📝 docs: 文档更新 - [ ] 🔧 ci: CI/CD 配置修改 - [ ] ↩️ revert: 回退 - [ ] 🧹 chore: 其他,请具体描述 ```请具体描述 See merge request: cann/asc-devkit!3041 | 3 个月前 | |
Fix concurrent lychee installation in markdown link check Co-authored-by: xun_zhuge<zhugexun@hisilicon.com> Co-authored-by: zhangyujia77<zhangyujia37@huawei.com> # message auto-generated for no-merge-commit merge: !3549 merge fix-markdown-lychee-install-lock into master Fix concurrent lychee installation in markdown link check Created-by: xun_zhuge Commit-by: zhangyujia77;xun_zhuge Merged-by: cann-robot Description: ## 背景 markdown-link-check 在 pre-commit run markdown-link-check --all-files 场景下会被 pre-commit 分批并行调用。当本地或 CI cache 中还没有 lychee-0.23.0 时,多个 hook 进程可能同时进入 lychee 安装流程,竞争写入同一个 lychee-0.23.0 可执行文件,导致偶现: - Text file busy - cannot create regular file 'lychee-0.23.0': File exists ## 修改内容 - 在 scripts/markdown_link_check.sh 的 lychee 安装阶段增加基于 lock dir 的跨进程锁。 - 等待锁期间会重复检查 lychee-$LYCHEE_VERSION 是否已经安装,其他进程安装完成后可直接复用。 - 只锁安装/准备 lychee 的临界区,不影响后续 markdown 文件分批并行扫描。 ## 验证 bash bash -n scripts/markdown_link_check.sh pre-commit run markdown-link-check --all-files 验证结果:markdown-link-check 通过,输出仍为多批扫描,未串行化。 See merge request: cann/asc-devkit!3549 | 3 个月前 | |
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 | 3 个月前 | |
style(examples):: format ASC source files Co-authored-by: zhangyujia77<zhangyujia37@huawei.com> # message auto-generated for no-merge-commit merge: !3456 merge update_examples_clang_format into master style(examples):: format ASC source files Created-by: zhangyujia77 Commit-by: zhangyujia77 Merged-by: cann-robot Description: ## 描述 本次修改包含两部分: 1. 更新 clang-format 的 pre-commit 配置,将 types_or 覆盖为 [file],避免 .asc 文件被 hook 默认类型过滤跳过,同时继续通过 files 正则限制只处理 C/C++/ASC 后缀。 2. 使用 clang-format 18.1.8 对仓库内 tracked .asc 文件执行统一格式化,覆盖 examples 下的 ASC 示例源码以及 tests/api/simt_api 下的 ASC 测试源码。 ## 关联的Issue 无 ## 测试 ## 文档更新 ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 fix: Bug 修复 - [ ] ✨ feat: 新功能 - [ ] ⚡ perf: 性能优化 - [ ] ♻️ refactor: 代码重构 - [ ] 🧪 test: 新增或修改测试 - [ ] 📝 docs: 文档更新 - [ ] 🔧 ci: CI/CD 配置修改 - [ ] ↩️ revert: 回退 - [x] 🧹chore: 代码格式 See merge request: cann/asc-devkit!3456 | 3 个月前 | |
style(examples):: format ASC source files Co-authored-by: zhangyujia77<zhangyujia37@huawei.com> # message auto-generated for no-merge-commit merge: !3456 merge update_examples_clang_format into master style(examples):: format ASC source files Created-by: zhangyujia77 Commit-by: zhangyujia77 Merged-by: cann-robot Description: ## 描述 本次修改包含两部分: 1. 更新 clang-format 的 pre-commit 配置,将 types_or 覆盖为 [file],避免 .asc 文件被 hook 默认类型过滤跳过,同时继续通过 files 正则限制只处理 C/C++/ASC 后缀。 2. 使用 clang-format 18.1.8 对仓库内 tracked .asc 文件执行统一格式化,覆盖 examples 下的 ASC 示例源码以及 tests/api/simt_api 下的 ASC 测试源码。 ## 关联的Issue 无 ## 测试 ## 文档更新 ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 fix: Bug 修复 - [ ] ✨ feat: 新功能 - [ ] ⚡ perf: 性能优化 - [ ] ♻️ refactor: 代码重构 - [ ] 🧪 test: 新增或修改测试 - [ ] 📝 docs: 文档更新 - [ ] 🔧 ci: CI/CD 配置修改 - [ ] ↩️ revert: 回退 - [x] 🧹chore: 代码格式 See merge request: cann/asc-devkit!3456 | 3 个月前 | |
ut报错修改:tests/api/simt_api/math_cpp/math_cpp.asc跑ut找不到asc_simt.h头文件 Co-authored-by: xuyiyang0324<xuyiyang6@huawei.com> # message auto-generated for no-merge-commit merge: !3798 merge master into master ut报错修改:tests/api/simt_api/math_cpp/math_cpp.asc跑ut找不到asc_simt.h头文件 Created-by: xuyiyang0324 Commit-by: xuyiyang0324 Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> ut报错修改:tests/api/simt_api/math_cpp/math_cpp.asc跑ut找不到asc_simt.h头文件。 将tests/api/simt_api/math_cpp/math_cpp.asc文件中#include "asc_simt.h"改为#include "simt_api/asc_simt.h" ## 关联的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!3798 | 2 个月前 | |
style(examples):: format ASC source files Co-authored-by: zhangyujia77<zhangyujia37@huawei.com> # message auto-generated for no-merge-commit merge: !3456 merge update_examples_clang_format into master style(examples):: format ASC source files Created-by: zhangyujia77 Commit-by: zhangyujia77 Merged-by: cann-robot Description: ## 描述 本次修改包含两部分: 1. 更新 clang-format 的 pre-commit 配置,将 types_or 覆盖为 [file],避免 .asc 文件被 hook 默认类型过滤跳过,同时继续通过 files 正则限制只处理 C/C++/ASC 后缀。 2. 使用 clang-format 18.1.8 对仓库内 tracked .asc 文件执行统一格式化,覆盖 examples 下的 ASC 示例源码以及 tests/api/simt_api 下的 ASC 测试源码。 ## 关联的Issue 无 ## 测试 ## 文档更新 ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 fix: Bug 修复 - [ ] ✨ feat: 新功能 - [ ] ⚡ perf: 性能优化 - [ ] ♻️ refactor: 代码重构 - [ ] 🧪 test: 新增或修改测试 - [ ] 📝 docs: 文档更新 - [ ] 🔧 ci: CI/CD 配置修改 - [ ] ↩️ revert: 回退 - [x] 🧹chore: 代码格式 See merge request: cann/asc-devkit!3456 | 3 个月前 | |
add simt api ut Co-authored-by: louyuxuan<louyuxuan@huawei.com> # message auto-generated for no-merge-commit merge: !1757 merge master into master add simt api ut Created-by: louyuxuan Commit-by: louyuxuan Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 补充 simt api 的ut ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #xxx--> ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 fix: Bug 修复 - [ ] ✨ feat: 新功能 - [ ] ⚡ perf: 性能优化 - [ ] ♻️ refactor: 代码重构 - [x] 🧪 test: 新增或修改测试 - [ ] 📝 docs: 文档更新 - [ ] 🔧 ci: CI/CD 配置修改 - [ ] ↩️ revert: 回退 - [ ] 🧹 chore: 其他,请具体描述 See merge request: cann/asc-devkit!1757 | 5 个月前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 3 个月前 | ||
| 3 个月前 | ||
| 3 个月前 | ||
| 3 个月前 | ||
| 3 个月前 | ||
| 2 个月前 | ||
| 3 个月前 | ||
| 5 个月前 |