| test: add_example kernel UT 补输入初始化与输出校验(修复 #27) Co-authored-by: Taoyouce<3463716443@qq.com> # message auto-generated for no-merge-commit merge: !91 merge fix/add-example-ut-verification into master test: add_example kernel UT 补输入初始化与输出校验(修复 #27) Created-by: 2403_87936996 Commit-by: Taoyouce Merged-by: cann-robot Description: ## Problem examples/add_example/tests/ut/op_kernel/test_add_example.cpp 的 test_case_0 零断言(EXPECT_*/ASSERT_* 数量为 0)且输入 x/y 分配后未初始化——ICPU_RUN_KF 之后直接释放内存,kernel 计算错误(甚至写出垃圾)也不会导致用例失败(对应 #27)。 ## Root cause 原实现只演示了 kernel 运行机制,缺少输入构造与结果校验。 ## Fix - ICPU_RUN_KF 前将 x/y 填入已知值:x[i]=i, y[i]=2i - 运行后逐元素校验 z[i] == x[i] + y[i](float32 加法位精确,位级比较;期望值 3i 在 fp32 下精确可表示) - 顺带将魔数 32*4*4*4 收敛为 totalLength 常量复用 ## Verification - 新增代码 gtest 片段本地语法编译通过 - 与同仓其余测试层对齐:test_add_example_tiling.cpp 校验 tiling 输出、fast_kernel_launch_example/tests/add/test_add.py 校验计算结果,本修复补齐 kernel UT 的校验缺口 - 不改动 kernel 与存量格式(仅新增行符合 clang-format) 仅改测试文件,不影响 kernel 行为。 See merge request: cann/ops-ras!91 | 16 天前 |
| chore: normalize copyright year to 2026 Co-authored-by: LiuZonggu<liuzonggu1@huawei.com> # message auto-generated for no-merge-commit merge: !66 merge split/pr10-copyright-2026 into master chore: normalize copyright year to 2026 Created-by: LiuZonggu Commit-by: LiuZonggu Merged-by: cann-robot Description: ## 描述 Normalize Huawei-owned copyright and license header year expressions across the repository: - Replaced legacy years, year ranges, and dynamic year placeholders with the single year 2026. - Standardized 460 copyright licenses across 455 tracked files. - Updated the copyright header generation logic in scripts/package/package.py and scripts/util/ascendc_impl_build.py so newly generated files consistently use the single year 2026. - Preserved third-party copyright years, license text, documentation content, and unrelated code behavior. ## 关联的Issue Related to issue [#4](https://gitcode.com/cann/ops-ras/issues/4) ## 测试 ## 文档更新 No documentation content or structure was changed. Only Huawei copyright year expressions in tracked Markdown files were normalized. ## 类型标签 - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [x] 其他,请描述:Copyright/license year normalization See merge request: cann/ops-ras!66 | 2 个月前 |
| 修改仓上格式语法问题 Co-authored-by: caiwenwen<caiwenwen6@h-partners.com> # message auto-generated for no-merge-commit merge: !75 merge master into master 修改仓上格式语法问题 Created-by: caiwenwen Commit-by: caiwenwen Merged-by: cann-robot Description: ## 描述 开源修改仓上的语法问题、产品支持情况格式,中英文空格 ## 关联的Issue 关联Issue [#7](https://gitcode.com/cann/ops-ras/issues/7) ## 测试 <!--描述进行了哪些测试来验证你的改动。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: See merge request: cann/ops-ras!75 | 2 个月前 |
| chore: normalize copyright year to 2026 Co-authored-by: LiuZonggu<liuzonggu1@huawei.com> # message auto-generated for no-merge-commit merge: !66 merge split/pr10-copyright-2026 into master chore: normalize copyright year to 2026 Created-by: LiuZonggu Commit-by: LiuZonggu Merged-by: cann-robot Description: ## 描述 Normalize Huawei-owned copyright and license header year expressions across the repository: - Replaced legacy years, year ranges, and dynamic year placeholders with the single year 2026. - Standardized 460 copyright licenses across 455 tracked files. - Updated the copyright header generation logic in scripts/package/package.py and scripts/util/ascendc_impl_build.py so newly generated files consistently use the single year 2026. - Preserved third-party copyright years, license text, documentation content, and unrelated code behavior. ## 关联的Issue Related to issue [#4](https://gitcode.com/cann/ops-ras/issues/4) ## 测试 ## 文档更新 No documentation content or structure was changed. Only Huawei copyright year expressions in tracked Markdown files were normalized. ## 类型标签 - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [x] 其他,请描述:Copyright/license year normalization See merge request: cann/ops-ras!66 | 2 个月前 |
| initial OPS-RAS | 7 个月前 |