| docs: rename programming_guide directory and files to English with underscores and update all references Co-authored-by: ai_xin<aixin2@hisilicon.com> # message auto-generated for no-merge-commit merge: !5124 merge master into master docs: rename programming_guide directory and files to English with underscores and update all references Created-by: ai_xin Commit-by: ai_xin Merged-by: cann-robot Description: ## 描述 更新编程指南目录及文件名称,并修改对应引用 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #xxx--> ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> ## 文档更新 更新了docs/zh/guide/编程指南下md文件。 ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 fix: Bug 修复 - [ ] ✨ feat: 新功能 - [ ] ⚡ perf: 性能优化 - [ ] ♻️ refactor: 代码重构 - [ ] 🧪 test: 新增或修改测试 - [x] 📝 docs: 文档更新 - [ ] 🔧 ci: CI/CD 配置修改 - [ ] ↩️ revert: 回退 - [ ] 🧹 chore: 其他,请具体描述 See merge request: cann/asc-devkit!5124 | 23 天前 |
| add skill for asc-devkit Co-authored-by: YANXI_ZHAO<zhaoyanxi3@hisilicon.com> # message auto-generated for no-merge-commit merge: !2158 merge master into master add skill for asc-devkit Created-by: YANXI_ZHAO Commit-by: YANXI_ZHAO Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 针对asc-devkit仓增加两个skill,一个skill是asc-api-ut-gen用于自动补全API的单元测试,另一个为asc-npu-arch提供芯片架构相关信息。 ## 关联的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!2158 | 3 个月前 |
| add skill for asc-devkit Co-authored-by: YANXI_ZHAO<zhaoyanxi3@hisilicon.com> # message auto-generated for no-merge-commit merge: !2158 merge master into master add skill for asc-devkit Created-by: YANXI_ZHAO Commit-by: YANXI_ZHAO Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 针对asc-devkit仓增加两个skill,一个skill是asc-api-ut-gen用于自动补全API的单元测试,另一个为asc-npu-arch提供芯片架构相关信息。 ## 关联的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!2158 | 3 个月前 |
| fix: 修复build.sh参数文档、移除未使用依赖、版本号升级至9.2.0 Co-authored-by: DragonBornHD84<huangduo4@hisilicon.com> # message auto-generated for no-merge-commit merge: !4729 merge dev into master fix: 修复build.sh参数文档、移除未使用依赖、版本号升级至9.2.0 Created-by: DragonBornHD84 Commit-by: DragonBornHD84 Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 本次改动包含三部分: 1. 修复 build.sh 参数文档缺失(#1271):-p/--cann_path 帮助文本仅示例了 root 用户路径,未明示非 root 用户默认为 $HOME/Ascend/cann;-j 未说明并发选择策略。在 --help、--pkg --help、-t --help 三处帮助输出中补充 root/非 root 双默认路径说明,并补充 -j 超过 CPU 核数自动降为核数的策略说明。 2. 移除 2 项未使用的三方依赖(#1280): - .devcontainer/Dockerfile:移除 gperf,全仓无 libseccomp 依赖,gperf 仅在 libseccomp 源码构建时需要,属无用安装项。 - CMakeLists.txt / mc2_server_minimal.cmake:移除 rdma-core 三方依赖声明及 rdma_core_headers 相关代码。全仓源码无 infiniband/verbs.h 等 rdma-core 系统头文件引用,源码仅使用项目内部头文件。 3. 版本号统一升级至 9.2.0:build.sh 的 VERSION_INFO、version.cmake 的 asc-devkit 包版本、hccl/cc/version.cmake 的 hccl 包版本三处统一从 8.5.0/9.1.0/9.0.0 升级为 9.2.0。 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #xxx--> - [#1271](https://gitcode.com/cann/asc-devkit/issues/1271) - [#1280](https://gitcode.com/cann/asc-devkit/issues/1280) ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> - bash build.sh --help、bash build.sh --pkg --help、bash build.sh -t --help 三处帮助输出均验证 -p 双路径与 -j 策略展示正确,$HOME 字面量未被展开。 - bash build.sh -j 16 全量编译验证通过(EXIT_CODE=0),libmc2_server.so 成功生成,构建达 100% 并完成打包,日志无 rdma 相关错误,确认移除 rdma-core 后构建无回归。 - 版本号改动后重新构建验证通过(EXIT_CODE=0)。 ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> - build.sh:更新 -p/--cann_path、-j 参数帮助说明文本(对应 #1271)。 ## 类型标签 <!-- [x] 表示选中 --> - [x] 🐛 fix: Bug 修复 - [ ] ✨ feat: 新功能 - [ ] ⚡ perf: 性能优化 - [ ] ♻️ refactor: 代码重构 - [ ] 🧪 test: 新增或修改测试 - [x] 📝 docs: 文档更新 - [ ] 🔧 ci: CI/CD 配置修改 - [ ] ↩️ revert: 回退 - [ ] 🧹 chore: 其他,请具体描述 See merge request: cann/asc-devkit!4729 | 29 天前 |
| 增加测试镜像功能 Co-authored-by: songxiujing<songxiujing1@h-partners.com> # message auto-generated for no-merge-commit merge: !3852 merge master into master 增加测试镜像功能 Created-by: songxiujing Commit-by: songxiujing 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!3852 | 12 天前 |
| add skill for asc-devkit Co-authored-by: YANXI_ZHAO<zhaoyanxi3@hisilicon.com> # message auto-generated for no-merge-commit merge: !2158 merge master into master add skill for asc-devkit Created-by: YANXI_ZHAO Commit-by: YANXI_ZHAO Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 针对asc-devkit仓增加两个skill,一个skill是asc-api-ut-gen用于自动补全API的单元测试,另一个为asc-npu-arch提供芯片架构相关信息。 ## 关联的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!2158 | 3 个月前 |
| fix: 修复Ascend C Toolkit下载地址(#1565) Co-authored-by: m0_56712298<wukeran@huawei.com> # message auto-generated for no-merge-commit merge: !5282 merge fix/issue-1565-ascend-c-toolkit-link into master fix: 修复Ascend C Toolkit下载地址(#1565) Created-by: m0_56712298 Commit-by: m0_56712298 Merged-by: cann-robot Description: ## 描述 修复 README 中 Ascend C Toolkit 下载地址失效的问题: - 将中英文 README 的安装入口更新为 GitCode Releases 页面。 - 从 .vscode/extensions.json 移除已失效的 Marketplace 扩展 ID。 ## 关联的Issue Fixes #1565 ## 测试 - git diff --check HEAD^ HEAD:通过 - .vscode/extensions.json JSON 解析:通过 - GitCode Releases 页面:HTTP 200;最新版本 1.5.2 包含两个 .vsix 资产 - MARKDOWN_LINK_CHECK_ONLINE=0 bash scripts/markdown_link_check.sh README.md README_en.md:通过,检查 3451 个文件 ## 文档更新 更新 README.md 和 README_en.md 中的 Ascend C Toolkit 下载说明。 ## 类型标签 - [x] 🐛 fix: Bug 修复 - [ ] ✨ feat: 新功能 - [ ] ⚡ perf: 性能优化 - [ ] ♻️ refactor: 代码重构 - [ ] 🧪 test: 新增或修改测试 - [ ] 📝 docs: 文档更新 - [ ] 🔧 ci: CI/CD 配置修改 - [ ] ↩️ revert: 回退 - [ ] 🧹 chore: 其他,请具体描述 See merge request: cann/asc-devkit!5282 | 13 天前 |
| feat: support custom simplified key compilation Co-authored-by: UFOunder<zhangxiru1@huawei.com> Co-authored-by: m0_56712298<wukeran@huawei.com> # message auto-generated for no-merge-commit merge: !5089 merge feature/individual-op-custom-simplified-key-core into master feat: support custom simplified key compilation Created-by: m0_56712298 Commit-by: UFOunder;m0_56712298 Merged-by: cann-robot Description: ## 描述 支持自定义 simplified key 的编译流程:通过 kernel options 传递 BINARY_JSON 和最终 simplified key 配置,按自定义 JSON 拆分 Kernel,并在编译入口校验 op_type、bin_filename、simplified_key、dtype、format 和 shape;自定义 simplifiedKey 时由 asc_opc 选择模式 2。 本次将示例从现有多算子 custom_op 中拆出,新增独立的 custom_op_simplified_key 工程;原 custom_op 恢复为基线行为,BINARY_JSON 按原工程约定放在新样例的 op_host/config/ascend910b 目录。 ## 关联的Issue 无 ## 测试 1. pytest -q tests/python/asc_opc/test_custom_binary_json_validation.py:15 passed。 2. 对修改后的 Python 文件执行 py_compile。 3. 原 custom_op 和新 custom_op_simplified_key 的 AddCustomTemplate_ascend910b 编译通过。 4. 新样例完整 binary package 构建通过,生成 FP16/FP32 Kernel Binary、simplifiedKeyMode=2 和 binary_info_config.json。 ## 文档更新 新增 custom_op_simplified_key/README.md、README_en.md,并更新 Compilation 样例索引。 ## 类型标签 - [ ] 🐛 fix: Bug 修复 - [x] ✨ feat: 新功能 - [ ] ⚡ perf: 性能优化 - [ ] ♻️ refactor: 代码重构 - [ ] 🧪 test: 新增或修改测试 - [x] 📝 docs: 文档更新 - [ ] 🔧 ci: CI/CD 配置修改 - [ ] ↩️ revert: 回退 - [ ] 🧹 chore: 其他,请具体描述 See merge request: cann/asc-devkit!5089 | 12 天前 |
| fix(debug): keep SIMD VF debug transfer alive on 3510 The scalar-side consumer could hang the kernel or silently drop records. asc_vf_debug_publish retried forever when a UB batch was larger than the GM ring buffer. That failure is permanent once simd_printf_fifo_size_per_core leaves ringBufLen below the 2024-byte payload, so asc_vf_debug_ub2gm spun without ever reaching its finish/assert exits. Drop the batch instead: advance readLen to release the producer and raise flag to stop the loop, matching what the aicore path already does. Failures from check_ringbuf_space stay retryable since those are only RTS lagging behind. asc_vf_debug_ub2gm polled the UB header through non-volatile loads, so the compiler hoisted them out of the loop and the consumer worked off a stale snapshot, observing finish == 1 while writeLen still read 0 and exiting without transferring anything. finish is set on the scalar unit while the records are written by the VF unit, so observing it does not imply the VF writes are visible yet. Sync the pipes and re-check before concluding the buffer is empty. The producer spin loops now also bail out on flag so they cannot wait on a consumer that has already left; assert then traps without its message instead of hanging. Also name both drop causes in the overflow warning, and document the recommended simd_printf_fifo_size_per_core for SIMD VF. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> | 8 天前 |
| fix(debug): unify SIMD assert quotation marks | 9 天前 |
| fix(debug): keep SIMD VF debug transfer alive on 3510 The scalar-side consumer could hang the kernel or silently drop records. asc_vf_debug_publish retried forever when a UB batch was larger than the GM ring buffer. That failure is permanent once simd_printf_fifo_size_per_core leaves ringBufLen below the 2024-byte payload, so asc_vf_debug_ub2gm spun without ever reaching its finish/assert exits. Drop the batch instead: advance readLen to release the producer and raise flag to stop the loop, matching what the aicore path already does. Failures from check_ringbuf_space stay retryable since those are only RTS lagging behind. asc_vf_debug_ub2gm polled the UB header through non-volatile loads, so the compiler hoisted them out of the loop and the consumer worked off a stale snapshot, observing finish == 1 while writeLen still read 0 and exiting without transferring anything. finish is set on the scalar unit while the records are written by the VF unit, so observing it does not imply the VF writes are visible yet. Sync the pipes and re-check before concluding the buffer is empty. The producer spin loops now also bail out on flag so they cannot wait on a consumer that has already left; assert then traps without its message instead of hanging. Also name both drop causes in the overflow warning, and document the recommended simd_printf_fifo_size_per_core for SIMD VF. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> | 8 天前 |
| 新增kernel_reg_compute_vec_data_reorder_intf_impl.h Co-authored-by: JC1126<jiangchao69@h-partners.com> # message auto-generated for no-merge-commit merge: !5421 merge jc_0827 into master 新增kernel_reg_compute_vec_data_reorder_intf_impl.h Created-by: JC1126 Commit-by: JC1126 Merged-by: cann-robot Description: ## 描述 新增kernel_reg_compute_vec_data_reorder_intf_impl.h ## 关联的Issue https://gitcode.com/cann/asc-devkit/issues/1558 ## 测试 冒烟验证通过 ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 fix: Bug 修复 - [ ] ✨ feat: 新功能 - [ ] ⚡ perf: 性能优化 - [x] ♻️ refactor: 代码重构 - [ ] 🧪 test: 新增或修改测试 - [ ] 📝 docs: 文档更新 - [ ] 🔧 ci: CI/CD 配置修改 - [ ] ↩️ revert: 回退 - [ ] 🧹 chore: 其他,请具体描述 See merge request: cann/asc-devkit!5421 | 9 天前 |
| 【fix】pre-commit检查OAT更新时候包的BUG问题 oat_check.sh Co-authored-by: zhangfands<18768316492@163.com> # message auto-generated for no-merge-commit merge: !5506 merge master into master 【fix】pre-commit检查OAT更新时候包的BUG问题 oat_check.sh Created-by: zhangfands Commit-by: zhangfands Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 【fix】pre-commit检查OAT更新时候包的BUG问题 oat_check.sh ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #xxx--> ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> 已通过pre-commit测试 ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [x] 🐛 fix: Bug 修复 - [ ] ✨ feat: 新功能 - [ ] ⚡ perf: 性能优化 - [ ] ♻️ refactor: 代码重构 - [ ] 🧪 test: 新增或修改测试 - [ ] 📝 docs: 文档更新 - [x] 🔧 ci: CI/CD 配置修改 - [ ] ↩️ revert: 回退 - [ ] 🧹 chore: 其他,请具体描述 See merge request: cann/asc-devkit!5506 | 9 天前 |
| 新增kernel_reg_compute_vec_data_reorder_intf_impl.h Co-authored-by: JC1126<jiangchao69@h-partners.com> # message auto-generated for no-merge-commit merge: !5421 merge jc_0827 into master 新增kernel_reg_compute_vec_data_reorder_intf_impl.h Created-by: JC1126 Commit-by: JC1126 Merged-by: cann-robot Description: ## 描述 新增kernel_reg_compute_vec_data_reorder_intf_impl.h ## 关联的Issue https://gitcode.com/cann/asc-devkit/issues/1558 ## 测试 冒烟验证通过 ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 fix: Bug 修复 - [ ] ✨ feat: 新功能 - [ ] ⚡ perf: 性能优化 - [x] ♻️ refactor: 代码重构 - [ ] 🧪 test: 新增或修改测试 - [ ] 📝 docs: 文档更新 - [ ] 🔧 ci: CI/CD 配置修改 - [ ] ↩️ revert: 回退 - [ ] 🧹 chore: 其他,请具体描述 See merge request: cann/asc-devkit!5421 | 9 天前 |
| 新增super kernel符号屏蔽规则 Co-authored-by: zhuangjinjun<zhuangjinjun@huawei.com> # message auto-generated for no-merge-commit merge: !5413 merge sk into master 新增super kernel符号屏蔽规则 Created-by: printfscanfmain Commit-by: zhuangjinjun Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 新增super kernel符号屏蔽规则,屏蔽c_api/include ## 关联的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!5413 | 12 天前 |
| 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 | 2 个月前 |
| 修正 clangd 路径,并新增灵活生成本地 .clangd 配置的脚本 Co-authored-by: Water8L<15279328600@163.com> # message auto-generated for no-merge-commit merge: !3449 merge master into master 修正 clangd 路径,并新增灵活生成本地 .clangd 配置的脚本 Created-by: Water8L Commit-by: Water8L Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 为 clangd 文档修正 /usr/bin/clangd-15 路径,并新增可按 CANN 安装路径和 NPU 架构生成本地 .clangd 配置的脚本与模板 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #xxx--> https://gitcode.com/cann/asc-devkit/issues/996 https://gitcode.com/cann/asc-devkit/issues/998 ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 fix: Bug 修复 - [x] ✨ feat: 新功能 - [ ] ⚡ perf: 性能优化 - [ ] ♻️ refactor: 代码重构 - [ ] 🧪 test: 新增或修改测试 - [x] 📝 docs: 文档更新 - [ ] 🔧 ci: CI/CD 配置修改 - [ ] ↩️ revert: 回退 - [ ] 🧹 chore: 其他,请具体描述 See merge request: cann/asc-devkit!3449 | 2 个月前 |
| 修正 clangd 路径,并新增灵活生成本地 .clangd 配置的脚本 Co-authored-by: Water8L<15279328600@163.com> # message auto-generated for no-merge-commit merge: !3449 merge master into master 修正 clangd 路径,并新增灵活生成本地 .clangd 配置的脚本 Created-by: Water8L Commit-by: Water8L Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 为 clangd 文档修正 /usr/bin/clangd-15 路径,并新增可按 CANN 安装路径和 NPU 架构生成本地 .clangd 配置的脚本与模板 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #xxx--> https://gitcode.com/cann/asc-devkit/issues/996 https://gitcode.com/cann/asc-devkit/issues/998 ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 fix: Bug 修复 - [x] ✨ feat: 新功能 - [ ] ⚡ perf: 性能优化 - [ ] ♻️ refactor: 代码重构 - [ ] 🧪 test: 新增或修改测试 - [x] 📝 docs: 文档更新 - [ ] 🔧 ci: CI/CD 配置修改 - [ ] ↩️ revert: 回退 - [ ] 🧹 chore: 其他,请具体描述 See merge request: cann/asc-devkit!3449 | 2 个月前 |
| refactor: move docs content into docs/zh/ subdirectory and update all references Co-authored-by: ai_xin<aixin2@hisilicon.com> # message auto-generated for no-merge-commit merge: !4331 merge master into master refactor: move docs content into docs/zh/ subdirectory and update all references Created-by: ai_xin Commit-by: ai_xin Merged-by: cann-robot Description: ## 描述 docs目录下区分中英文目录 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #xxx--> ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> ## 文档更新 docs目录下区分zh/en目录,并修改引用到这些文件的路径。 ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 fix: Bug 修复 - [ ] ✨ feat: 新功能 - [ ] ⚡ perf: 性能优化 - [ ] ♻️ refactor: 代码重构 - [ ] 🧪 test: 新增或修改测试 - [x] 📝 docs: 文档更新 - [ ] 🔧 ci: CI/CD 配置修改 - [ ] ↩️ revert: 回退 - [ ] 🧹 chore: 其他,请具体描述 See merge request: cann/asc-devkit!4331 | 1 个月前 |
| x90 9030 ut Co-authored-by: Dukexin004<dukexin@h-partners.com> Co-authored-by: INFINITY<zhangzhe180@h-partners.com> # message auto-generated for no-merge-commit merge: !1931 merge master into master x90 9030 ut Created-by: Zhezhezhezhe0414 Commit-by: INFINITY;Zhezhezhezhe0414;Dukexin004 Merged-by: cann-robot Description: ## 描述 补充x90 9030的UT用例 对于不支持的bf16数据类型用例,以及shape过大的用例,使用宏进行隔离 ## 关联的Issue 关联issue [#630](https://gitcode.com/cann/asc-devkit/issues/630) ## 测试 本地自测试kirinx90 9030UT正常执行通过 测试其他版本ascend301p,ascend610,ascend910B1 UT全量通过 ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 fix: Bug 修复 - [ ] ✨ feat: 新功能 - [ ] ⚡ perf: 性能优化 - [ ] ♻️ refactor: 代码重构 - [x] 🧪 test: 新增或修改测试 - [ ] 📝 docs: 文档更新 - [ ] 🔧 ci: CI/CD 配置修改 - [ ] ↩️ revert: 回退 - [ ] 🧹 chore: 其他,请具体描述 See merge request: cann/asc-devkit!1931 | 1 个月前 |
| fix example Co-authored-by: watermelon_milk<kangshuai12@hisilicon.com> # message auto-generated for no-merge-commit merge: !5449 merge tensor_snake into master fix example Created-by: watermelon_milk Commit-by: watermelon_milk Merged-by: cann-robot Description: ## 描述 修复example样例问题 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #xxx--> ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [x] 🐛 fix: Bug 修复 - [ ] ✨ feat: 新功能 - [ ] ⚡ perf: 性能优化 - [ ] ♻️ refactor: 代码重构 - [ ] 🧪 test: 新增或修改测试 - [ ] 📝 docs: 文档更新 - [ ] 🔧 ci: CI/CD 配置修改 - [ ] ↩️ revert: 回退 - [ ] 🧹 chore: 其他,请具体描述 See merge request: cann/asc-devkit!5449 | 12 天前 |
| update v9.1.0-beta2 release note Co-authored-by: gao_dafa<gaoyue6@huawei.com> # message auto-generated for no-merge-commit merge: !4104 merge master into master update v9.1.0-beta2 release note Created-by: gao_dafa Commit-by: gao_dafa Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 添加v9.1.0-beta2的更新说明 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #xxx--> ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> README.md CHANGELOG.md ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 fix: Bug 修复 - [ ] ✨ feat: 新功能 - [ ] ⚡ perf: 性能优化 - [ ] ♻️ refactor: 代码重构 - [ ] 🧪 test: 新增或修改测试 - [x] 📝 docs: 文档更新 - [ ] 🔧 ci: CI/CD 配置修改 - [ ] ↩️ revert: 回退 - [ ] 🧹 chore: 其他,请具体描述 See merge request: cann/asc-devkit!4104 | 2 个月前 |
| update v9.1.0-beta2 release note Co-authored-by: gao_dafa<gaoyue6@huawei.com> # message auto-generated for no-merge-commit merge: !4104 merge master into master update v9.1.0-beta2 release note Created-by: gao_dafa Commit-by: gao_dafa Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 添加v9.1.0-beta2的更新说明 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #xxx--> ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> README.md CHANGELOG.md ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 fix: Bug 修复 - [ ] ✨ feat: 新功能 - [ ] ⚡ perf: 性能优化 - [ ] ♻️ refactor: 代码重构 - [ ] 🧪 test: 新增或修改测试 - [x] 📝 docs: 文档更新 - [ ] 🔧 ci: CI/CD 配置修改 - [ ] ↩️ revert: 回退 - [ ] 🧹 chore: 其他,请具体描述 See merge request: cann/asc-devkit!4104 | 2 个月前 |
| use cann-cmake intf_pub Co-authored-by: DragonBornHD84<huangduo4@hisilicon.com> # message auto-generated for no-merge-commit merge: !2805 merge dev4 into master use cann-cmake intf_pub Created-by: DragonBornHD84 Commit-by: DragonBornHD84 Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 使用cmake仓提供的intf_pub ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #xxx--> 关联Issue [#624](https://gitcode.com/cann/asc-devkit/issues/624) ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 fix: Bug 修复 - [x] ✨ feat: 新功能 - [ ] ⚡ perf: 性能优化 - [ ] ♻️ refactor: 代码重构 - [ ] 🧪 test: 新增或修改测试 - [ ] 📝 docs: 文档更新 - [ ] 🔧 ci: CI/CD 配置修改 - [ ] ↩️ revert: 回退 - [ ] 🧹 chore: 其他,请具体描述 See merge request: cann/asc-devkit!2805 | 3 个月前 |
| 新增代码贡献规范文档 Co-authored-by: wuyang_hw<wuyang74@hisilicon.com> # message auto-generated for no-merge-commit merge: !2313 merge guidelines into master 新增代码贡献规范文档 Created-by: wuyang_hw Commit-by: wuyang_hw Merged-by: cann-robot Description: ## 描述 在 docs/contributing/ 下新增贡献规范文档,统一编码风格、API 设计、目录结构、测试编写等约定。同步更新 CONTRIBUTING.md 添加规范索引。 | 文档 | 内容 | |------|------| | code-style.md | 命名、header guard、include、namespace、宏、constexpr、格式化 | | api-design.md | 三种 API 对比、模板参数、__aicore__、Tiling 接口、弃用标注 | | directory-structure.md | include/↔impl/ 映射、文件后缀、架构目录、新增 API 清单 | | testing.md | 测试框架、UT 编写模板、Header Checker、覆盖率要求 | | README.md | 规范索引与快速导航 | ## 关联的Issue NA ## 测试 纯文档变更,内部链接已校验。 ## 文档更新 同步更新 CONTRIBUTING.md。 ## 类型标签 - [ ] 🐛 fix - [ ] ✨ feat - [ ] ⚡ perf - [ ] ♻️ refactor - [ ] 🧪 test - [x] 📝 docs - [ ] 🔧 ci - [ ] ↩️ revert - [ ] 🧹 chore See merge request: cann/asc-devkit!2313 | 1 个月前 |
| 新增代码贡献规范文档 Co-authored-by: wuyang_hw<wuyang74@hisilicon.com> # message auto-generated for no-merge-commit merge: !2313 merge guidelines into master 新增代码贡献规范文档 Created-by: wuyang_hw Commit-by: wuyang_hw Merged-by: cann-robot Description: ## 描述 在 docs/contributing/ 下新增贡献规范文档,统一编码风格、API 设计、目录结构、测试编写等约定。同步更新 CONTRIBUTING.md 添加规范索引。 | 文档 | 内容 | |------|------| | code-style.md | 命名、header guard、include、namespace、宏、constexpr、格式化 | | api-design.md | 三种 API 对比、模板参数、__aicore__、Tiling 接口、弃用标注 | | directory-structure.md | include/↔impl/ 映射、文件后缀、架构目录、新增 API 清单 | | testing.md | 测试框架、UT 编写模板、Header Checker、覆盖率要求 | | README.md | 规范索引与快速导航 | ## 关联的Issue NA ## 测试 纯文档变更,内部链接已校验。 ## 文档更新 同步更新 CONTRIBUTING.md。 ## 类型标签 - [ ] 🐛 fix - [ ] ✨ feat - [ ] ⚡ perf - [ ] ♻️ refactor - [ ] 🧪 test - [x] 📝 docs - [ ] 🔧 ci - [ ] ↩️ revert - [ ] 🧹 chore See merge request: cann/asc-devkit!2313 | 1 个月前 |
| 扩展pre-commit hooks (第三批目录) Co-authored-by: Water8L<15279328600@163.com> # message auto-generated for no-merge-commit merge: !4195 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,修改剩下全部目录中对应不合规范的文件 ## 关联的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!4195 | 2 个月前 |
| 修正 clangd 路径,并新增灵活生成本地 .clangd 配置的脚本 Co-authored-by: Water8L<15279328600@163.com> # message auto-generated for no-merge-commit merge: !3449 merge master into master 修正 clangd 路径,并新增灵活生成本地 .clangd 配置的脚本 Created-by: Water8L Commit-by: Water8L Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 为 clangd 文档修正 /usr/bin/clangd-15 路径,并新增可按 CANN 安装路径和 NPU 架构生成本地 .clangd 配置的脚本与模板 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #xxx--> https://gitcode.com/cann/asc-devkit/issues/996 https://gitcode.com/cann/asc-devkit/issues/998 ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 fix: Bug 修复 - [x] ✨ feat: 新功能 - [ ] ⚡ perf: 性能优化 - [ ] ♻️ refactor: 代码重构 - [ ] 🧪 test: 新增或修改测试 - [x] 📝 docs: 文档更新 - [ ] 🔧 ci: CI/CD 配置修改 - [ ] ↩️ revert: 回退 - [ ] 🧹 chore: 其他,请具体描述 See merge request: cann/asc-devkit!3449 | 2 个月前 |
| fix: 修复Ascend C Toolkit下载地址(#1565) Co-authored-by: m0_56712298<wukeran@huawei.com> # message auto-generated for no-merge-commit merge: !5282 merge fix/issue-1565-ascend-c-toolkit-link into master fix: 修复Ascend C Toolkit下载地址(#1565) Created-by: m0_56712298 Commit-by: m0_56712298 Merged-by: cann-robot Description: ## 描述 修复 README 中 Ascend C Toolkit 下载地址失效的问题: - 将中英文 README 的安装入口更新为 GitCode Releases 页面。 - 从 .vscode/extensions.json 移除已失效的 Marketplace 扩展 ID。 ## 关联的Issue Fixes #1565 ## 测试 - git diff --check HEAD^ HEAD:通过 - .vscode/extensions.json JSON 解析:通过 - GitCode Releases 页面:HTTP 200;最新版本 1.5.2 包含两个 .vsix 资产 - MARKDOWN_LINK_CHECK_ONLINE=0 bash scripts/markdown_link_check.sh README.md README_en.md:通过,检查 3451 个文件 ## 文档更新 更新 README.md 和 README_en.md 中的 Ascend C Toolkit 下载说明。 ## 类型标签 - [x] 🐛 fix: Bug 修复 - [ ] ✨ feat: 新功能 - [ ] ⚡ perf: 性能优化 - [ ] ♻️ refactor: 代码重构 - [ ] 🧪 test: 新增或修改测试 - [ ] 📝 docs: 文档更新 - [ ] 🔧 ci: CI/CD 配置修改 - [ ] ↩️ revert: 回退 - [ ] 🧹 chore: 其他,请具体描述 See merge request: cann/asc-devkit!5282 | 13 天前 |
| fix: 修复Ascend C Toolkit下载地址(#1565) Co-authored-by: m0_56712298<wukeran@huawei.com> # message auto-generated for no-merge-commit merge: !5282 merge fix/issue-1565-ascend-c-toolkit-link into master fix: 修复Ascend C Toolkit下载地址(#1565) Created-by: m0_56712298 Commit-by: m0_56712298 Merged-by: cann-robot Description: ## 描述 修复 README 中 Ascend C Toolkit 下载地址失效的问题: - 将中英文 README 的安装入口更新为 GitCode Releases 页面。 - 从 .vscode/extensions.json 移除已失效的 Marketplace 扩展 ID。 ## 关联的Issue Fixes #1565 ## 测试 - git diff --check HEAD^ HEAD:通过 - .vscode/extensions.json JSON 解析:通过 - GitCode Releases 页面:HTTP 200;最新版本 1.5.2 包含两个 .vsix 资产 - MARKDOWN_LINK_CHECK_ONLINE=0 bash scripts/markdown_link_check.sh README.md README_en.md:通过,检查 3451 个文件 ## 文档更新 更新 README.md 和 README_en.md 中的 Ascend C Toolkit 下载说明。 ## 类型标签 - [x] 🐛 fix: Bug 修复 - [ ] ✨ feat: 新功能 - [ ] ⚡ perf: 性能优化 - [ ] ♻️ refactor: 代码重构 - [ ] 🧪 test: 新增或修改测试 - [ ] 📝 docs: 文档更新 - [ ] 🔧 ci: CI/CD 配置修改 - [ ] ↩️ revert: 回退 - [ ] 🧹 chore: 其他,请具体描述 See merge request: cann/asc-devkit!5282 | 13 天前 |
| fix(docs): align example README language links Co-authored-by: zhangyujia77<zhangyujia37@huawei.com> # message auto-generated for no-merge-commit merge: !4578 merge fix-examples-readme-language-links into master fix(docs): align example README language links Created-by: zhangyujia77 Commit-by: zhangyujia77 Merged-by: cann-robot Description: ## 描述 修复仓库Markdown文档链接问题: 1. 修正examples目录下README中英文版本及锚点混用问题。 2. 要求所有指向本仓库内容的链接使用相对路径,不区分源文件和目标文件所在目录。 3. markdown_link_check.sh拦截当前master分支的本仓库HTTPS内容链接。 4. HTTP(S)链接仅校验网页可访问性,保留历史版本、Issue、PR和Wiki链接。 5. 清理过时的GitCode分支及对象链接校验逻辑。 ## 关联的Issue 无 ## 测试 - bash -n scripts/markdown_link_check.sh:通过 - git diff --check:通过 - MARKDOWN_LINK_CHECK_ONLINE=0 MARKDOWN_LINK_CHECK_FULL=1 bash scripts/markdown_link_check.sh --full:通过,检查3971个文件 - 提交钩子检查通过 - GitCode远端检查通过 ## 文档更新 更新根目录README、SECURITY、docs及examples目录下相关README链接。 ## 类型标签 - [ ] 🐛 fix: Bug 修复 - [ ] ✨ feat: 新功能 - [ ] ⚡ perf: 性能优化 - [ ] ♻️ refactor: 代码重构 - [ ] 🧪 test: 新增或修改测试 - [x] 📝 docs: 文档更新 - [x] 🔧 ci: CI/CD 配置修改 - [ ] ↩️ revert: 回退 - [ ] 🧹 chore: 其他,请具体描述 See merge request: cann/asc-devkit!4578 | 1 个月前 |
| fix(docs): align example README language links Co-authored-by: zhangyujia77<zhangyujia37@huawei.com> # message auto-generated for no-merge-commit merge: !4578 merge fix-examples-readme-language-links into master fix(docs): align example README language links Created-by: zhangyujia77 Commit-by: zhangyujia77 Merged-by: cann-robot Description: ## 描述 修复仓库Markdown文档链接问题: 1. 修正examples目录下README中英文版本及锚点混用问题。 2. 要求所有指向本仓库内容的链接使用相对路径,不区分源文件和目标文件所在目录。 3. markdown_link_check.sh拦截当前master分支的本仓库HTTPS内容链接。 4. HTTP(S)链接仅校验网页可访问性,保留历史版本、Issue、PR和Wiki链接。 5. 清理过时的GitCode分支及对象链接校验逻辑。 ## 关联的Issue 无 ## 测试 - bash -n scripts/markdown_link_check.sh:通过 - git diff --check:通过 - MARKDOWN_LINK_CHECK_ONLINE=0 MARKDOWN_LINK_CHECK_FULL=1 bash scripts/markdown_link_check.sh --full:通过,检查3971个文件 - 提交钩子检查通过 - GitCode远端检查通过 ## 文档更新 更新根目录README、SECURITY、docs及examples目录下相关README链接。 ## 类型标签 - [ ] 🐛 fix: Bug 修复 - [ ] ✨ feat: 新功能 - [ ] ⚡ perf: 性能优化 - [ ] ♻️ refactor: 代码重构 - [ ] 🧪 test: 新增或修改测试 - [x] 📝 docs: 文档更新 - [x] 🔧 ci: CI/CD 配置修改 - [ ] ↩️ revert: 回退 - [ ] 🧹 chore: 其他,请具体描述 See merge request: cann/asc-devkit!4578 | 1 个月前 |
| fix oat pre-commit macos compatibility Co-authored-by: xun_zhuge<zhugexun@hisilicon.com> # message auto-generated for no-merge-commit merge: !3193 merge opt_ci_job into master fix oat pre-commit macos compatibility Created-by: xun_zhuge Commit-by: xun_zhuge Merged-by: cann-robot Description: ## 描述 本 PR 完善 asc-devkit 的 pre-commit/OAT 合规检查链路,并修复当前 OAT 扫描暴露的问题。 主要改动: - 完善本地 pre-commit 配置:保留基础检查、clang-format、ruff、codespell 与本地 oat-check hook。 - 删除重复的 typos 拼写检查,避免与 codespell 功能重叠并维护两套专有词白名单。 - 修复 scripts/oat_check.sh 在 macOS/BSD 环境下的兼容性,避免依赖 GNU sed 行为。 - 使用 oat-py 作为 OAT 扫描入口,并在 .devcontainer/requirements.txt 中补充 oat-py>=1.0.0。 - 增强 oat-check 结果判断:同时汇总并拦截 Invalid File Type、License Header Invalid、Copyright Header Invalid。 - 修复 pre-commit 分批执行时 oat_reports/result.txt 统计不完整的问题,按同一次扫描聚合多个 batch 的结果。 - 修正 OAT 策略范围:将不需要 license/copyright header 的文件类型放入 defaultPolicyFilter/copyrightPolicyFilter,并清理当前仓库匹配数量为 0 的过滤项。 - 修复 OAT Invalid File Type 问题:过滤 *.png、.clangd、SWSCRL.crl 等允许的二进制/工具配置文件。 - 修复 OAT License Header Invalid / Copyright Header Invalid 问题:补齐或修正相关测试、样例和脚本文件的 CANN license/copyright header。 - 已撤回误带入的 clang-format 格式化差异,最终 C/C++ 相关文件只保留合规文案修复。 ## 关联的Issue 无。 ## 测试 已完成以下验证: - sh -n scripts/oat_check.sh - python3 -c 'import xml.etree.ElementTree as ET; ET.parse("OAT.xml")' - pre-commit run --files .pre-commit-config.yaml OAT.xml scripts/oat_check.sh - pre-commit run oat-check --all-files - Files Checked: 14140 - Runs Aggregated: 10 - Invalid File Type Total Count: 0 - License Header Invalid Total Count: 0 - Copyright Header Invalid Total Count: 0 - OAT filter 命中审计:defaultPolicyFilter、copyrightPolicyFilter、binaryFileTypePolicyFilter 均为 zero_match=0 - bash scripts/oat_check.sh .clangd:通过,确认 .clangd 不再被误判为非法二进制文件 - bash scripts/oat_check.sh OAT.xml scripts/oat_check.sh .pre-commit-config.yaml:通过,确认增量 OAT 检查正常 - pre-commit run --files .pre-commit-config.yaml OAT.xml scripts/oat_check.sh:通过,确认删除 typos 后变更文件仍通过提交钩子 - git diff --check - 远端 GitCode hook 检查通过 说明:未声明 pre-commit run --all-files 全量通过;当前全仓 codespell 会扫出既有拼写问题,本 PR 只验证变更文件范围的 pre-commit 和全量 OAT。 ## 文档更新 无用户文档更新。 本 PR 仅涉及 pre-commit/OAT 检查配置、devcontainer 依赖和合规修复;未修改面向用户的使用文档。 ## 类型标签 <!-- [x] 表示选中 --> - [x] 🐛 fix: Bug 修复 - [ ] ✨ feat: 新功能 - [ ] ⚡ perf: 性能优化 - [ ] ♻️ refactor: 代码重构 - [ ] 🧪 test: 新增或修改测试 - [ ] 📝 docs: 文档更新 - [x] 🔧 ci: CI/CD 配置修改 - [ ] ↩️ revert: 回退 - [x] 🧹 chore: 其他,请具体描述 See merge request: cann/asc-devkit!3193 | 2 个月前 |
| 扩展pre-commit hooks (第三批目录) Co-authored-by: Water8L<15279328600@163.com> # message auto-generated for no-merge-commit merge: !4195 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,修改剩下全部目录中对应不合规范的文件 ## 关联的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!4195 | 2 个月前 |
| fix: validate --sign-script option value Co-authored-by: m0_56712298<wukeran@huawei.com> # message auto-generated for no-merge-commit merge: !5204 merge fix/issue-1540-sign-script-option into master fix: validate --sign-script option value Created-by: m0_56712298 Commit-by: m0_56712298 Merged-by: cann-robot Description: ## 描述 为 build.sh 的 --sign-script 选项补充参数值校验。缺少脚本路径或下一个参数仍是选项时,脚本现在会输出明确的 --sign-script requires a value. 错误,而不是透传 realpath 的底层报错。 同时新增两个回归用例,覆盖参数缺失和下一选项被误当作参数值的场景。 ## 关联的Issue Fixes #1540 https://gitcode.com/cann/asc-devkit/issues/1540 ## 测试 - python3 -m pytest -q tests/python/asc_compile_common/test_build_sh.py:2 passed - python3 -m py_compile tests/python/asc_compile_common/test_build_sh.py:通过 - bash -n build.sh:通过 - git diff --check:通过 ## 文档更新 无。 ## 类型标签 - [x] 🐛 fix: Bug 修复 - [ ] ✨ feat: 新功能 - [ ] ⚡ perf: 性能优化 - [ ] ♻️ refactor: 代码重构 - [x] 🧪 test: 新增或修改测试 - [ ] 📝 docs: 文档更新 - [ ] 🔧 ci: CI/CD 配置修改 - [ ] ↩️ revert: 回退 - [ ] 🧹 chore: 其他,请具体描述 See merge request: cann/asc-devkit!5204 | 21 天前 |
| TensorAPI代码风格切换snake Co-authored-by: ca1kw<caikaiwei@huawei.com> # message auto-generated for no-merge-commit merge: !5342 merge master into master TensorAPI代码风格切换snake Created-by: ca1kw Commit-by: ca1kw Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> TensorAPI代码风格切换为snake,对于大驼峰接口新增legacy目录进行兼容,保证算子使用没有问题。已验证算子红线样例通过,算子出包成功。 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #xxx--> ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 fix: Bug 修复 - [ ] ✨ feat: 新功能 - [ ] ⚡ perf: 性能优化 - [x] ♻️ refactor: 代码重构 - [ ] 🧪 test: 新增或修改测试 - [ ] 📝 docs: 文档更新 - [ ] 🔧 ci: CI/CD 配置修改 - [ ] ↩️ revert: 回退 - [ ] 🧹 chore: 其他,请具体描述 See merge request: cann/asc-devkit!5342 | 12 天前 |
| fix: pkg version Co-authored-by: haipingmao<maohaiping@huawei.com> # message auto-generated for no-merge-commit merge: !5306 merge br_fix_docs into master fix: pkg version Created-by: haipingmao Commit-by: haipingmao Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 当前quick_start.md中:制定了安装包的版本,但是在执行实际安装时,却并没有给出版本信息。现补充。 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #xxx--> 关联的Issue #1377 ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> NA ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> docs/zh/quick_start.md ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 fix: Bug 修复 - [ ] ✨ feat: 新功能 - [ ] ⚡ perf: 性能优化 - [ ] ♻️ refactor: 代码重构 - [ ] 🧪 test: 新增或修改测试 - [x] 📝 docs: 文档更新 - [ ] 🔧 ci: CI/CD 配置修改 - [ ] ↩️ revert: 回退 - [ ] 🧹 chore: 其他,请具体描述 See merge request: cann/asc-devkit!5306 | 15 天前 |
| 扩展ruff-pre-commit hooks (第三批目录) Co-authored-by: Water8L<15279328600@163.com> # message auto-generated for no-merge-commit merge: !4339 merge master into master 扩展ruff-pre-commit hooks (第三批目录) Created-by: Water8L Commit-by: Water8L Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 关于.pre-commit-config.yaml中ruff-check ruff-format,取消屏蔽部分文件,除了暂时屏蔽的错误类型 ## 关联的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!4339 | 1 个月前 |
| fix: 修复build.sh参数文档、移除未使用依赖、版本号升级至9.2.0 Co-authored-by: DragonBornHD84<huangduo4@hisilicon.com> # message auto-generated for no-merge-commit merge: !4729 merge dev into master fix: 修复build.sh参数文档、移除未使用依赖、版本号升级至9.2.0 Created-by: DragonBornHD84 Commit-by: DragonBornHD84 Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 本次改动包含三部分: 1. 修复 build.sh 参数文档缺失(#1271):-p/--cann_path 帮助文本仅示例了 root 用户路径,未明示非 root 用户默认为 $HOME/Ascend/cann;-j 未说明并发选择策略。在 --help、--pkg --help、-t --help 三处帮助输出中补充 root/非 root 双默认路径说明,并补充 -j 超过 CPU 核数自动降为核数的策略说明。 2. 移除 2 项未使用的三方依赖(#1280): - .devcontainer/Dockerfile:移除 gperf,全仓无 libseccomp 依赖,gperf 仅在 libseccomp 源码构建时需要,属无用安装项。 - CMakeLists.txt / mc2_server_minimal.cmake:移除 rdma-core 三方依赖声明及 rdma_core_headers 相关代码。全仓源码无 infiniband/verbs.h 等 rdma-core 系统头文件引用,源码仅使用项目内部头文件。 3. 版本号统一升级至 9.2.0:build.sh 的 VERSION_INFO、version.cmake 的 asc-devkit 包版本、hccl/cc/version.cmake 的 hccl 包版本三处统一从 8.5.0/9.1.0/9.0.0 升级为 9.2.0。 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #xxx--> - [#1271](https://gitcode.com/cann/asc-devkit/issues/1271) - [#1280](https://gitcode.com/cann/asc-devkit/issues/1280) ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> - bash build.sh --help、bash build.sh --pkg --help、bash build.sh -t --help 三处帮助输出均验证 -p 双路径与 -j 策略展示正确,$HOME 字面量未被展开。 - bash build.sh -j 16 全量编译验证通过(EXIT_CODE=0),libmc2_server.so 成功生成,构建达 100% 并完成打包,日志无 rdma 相关错误,确认移除 rdma-core 后构建无回归。 - 版本号改动后重新构建验证通过(EXIT_CODE=0)。 ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> - build.sh:更新 -p/--cann_path、-j 参数帮助说明文本(对应 #1271)。 ## 类型标签 <!-- [x] 表示选中 --> - [x] 🐛 fix: Bug 修复 - [ ] ✨ feat: 新功能 - [ ] ⚡ perf: 性能优化 - [ ] ♻️ refactor: 代码重构 - [ ] 🧪 test: 新增或修改测试 - [x] 📝 docs: 文档更新 - [ ] 🔧 ci: CI/CD 配置修改 - [ ] ↩️ revert: 回退 - [ ] 🧹 chore: 其他,请具体描述 See merge request: cann/asc-devkit!4729 | 29 天前 |