| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
修复issue 1409和issue 1472 Co-authored-by: cgcaof<caochenguang1@h-partners.com> # message auto-generated for no-merge-commit merge: !5100 merge master into master 修复issue 1409和issue 1472 Created-by: cgcaof Commit-by: cgcaof Merged-by: cann-robot Description: ## 描述 修复issue 1409,文档链接指向错误 修复issue 1472,链接名称错误 ## 关联的Issue https://gitcode.com/cann/asc-devkit/issues/1409 https://gitcode.com/cann/asc-devkit/issues/1472 ## 测试 不涉及 ## 文档更新 docs/zh/guide/算子实践参考/SIMD算子实现/融合算子编程/CV融合/算子实现.md ## 类型标签 <!-- [x] 表示选中 --> - [x] 🐛 fix: Bug 修复 - [ ] ✨ feat: 新功能 - [ ] ⚡ perf: 性能优化 - [ ] ♻️ refactor: 代码重构 - [ ] 🧪 test: 新增或修改测试 - [ ] 📝 docs: 文档更新 - [ ] 🔧 ci: CI/CD 配置修改 - [ ] ↩️ revert: 回退 - [ ] 🧹 chore: 其他,请具体描述 See merge request: cann/asc-devkit!5100 | 23 天前 | |
修复issue 1409和issue 1472 Co-authored-by: cgcaof<caochenguang1@h-partners.com> # message auto-generated for no-merge-commit merge: !5100 merge master into master 修复issue 1409和issue 1472 Created-by: cgcaof Commit-by: cgcaof Merged-by: cann-robot Description: ## 描述 修复issue 1409,文档链接指向错误 修复issue 1472,链接名称错误 ## 关联的Issue https://gitcode.com/cann/asc-devkit/issues/1409 https://gitcode.com/cann/asc-devkit/issues/1472 ## 测试 不涉及 ## 文档更新 docs/zh/guide/算子实践参考/SIMD算子实现/融合算子编程/CV融合/算子实现.md ## 类型标签 <!-- [x] 表示选中 --> - [x] 🐛 fix: Bug 修复 - [ ] ✨ feat: 新功能 - [ ] ⚡ perf: 性能优化 - [ ] ♻️ refactor: 代码重构 - [ ] 🧪 test: 新增或修改测试 - [ ] 📝 docs: 文档更新 - [ ] 🔧 ci: CI/CD 配置修改 - [ ] ↩️ revert: 回退 - [ ] 🧹 chore: 其他,请具体描述 See merge request: cann/asc-devkit!5100 | 23 天前 | |
修复issue 1409和issue 1472 Co-authored-by: cgcaof<caochenguang1@h-partners.com> # message auto-generated for no-merge-commit merge: !5100 merge master into master 修复issue 1409和issue 1472 Created-by: cgcaof Commit-by: cgcaof Merged-by: cann-robot Description: ## 描述 修复issue 1409,文档链接指向错误 修复issue 1472,链接名称错误 ## 关联的Issue https://gitcode.com/cann/asc-devkit/issues/1409 https://gitcode.com/cann/asc-devkit/issues/1472 ## 测试 不涉及 ## 文档更新 docs/zh/guide/算子实践参考/SIMD算子实现/融合算子编程/CV融合/算子实现.md ## 类型标签 <!-- [x] 表示选中 --> - [x] 🐛 fix: Bug 修复 - [ ] ✨ feat: 新功能 - [ ] ⚡ perf: 性能优化 - [ ] ♻️ refactor: 代码重构 - [ ] 🧪 test: 新增或修改测试 - [ ] 📝 docs: 文档更新 - [ ] 🔧 ci: CI/CD 配置修改 - [ ] ↩️ revert: 回退 - [ ] 🧹 chore: 其他,请具体描述 See merge request: cann/asc-devkit!5100 | 23 天前 | |
[aclrtc] fix example cann version mistake Co-authored-by: ChenZhoujie<chenzhoujie@huawei.com> # message auto-generated for no-merge-commit merge: !5462 merge master into master [aclrtc] fix example cann version mistake Created-by: ChenZhoujie Commit-by: ChenZhoujie Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> aclrtc样例中引入了aclrtLaunchKernelWithArgsArray接口启动内核,但该API在CANN 9.0.0的头文件中不存在,会导致在CANN 9.0.0的环境下编译失败。 修改描述,需要9.1.0以上的版本 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #xxx--> [#1455](https://gitcode.com/cann/asc-devkit/issues/1455) ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> examples/01_simd_cpp_api/02_features/05_aclrtc ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 fix: Bug 修复 - [ ] ✨ feat: 新功能 - [ ] ⚡ perf: 性能优化 - [ ] ♻️ refactor: 代码重构 - [ ] 🧪 test: 新增或修改测试 - [x] 📝 docs: 文档更新 - [ ] 🔧 ci: CI/CD 配置修改 - [ ] ↩️ revert: 回退 - [ ] 🧹 chore: 其他,请具体描述 See merge request: cann/asc-devkit!5462 | 11 天前 | |
fix(examples): correct build settings and fp16 validation Co-authored-by: zhangyujia77<zhangyujia37@huawei.com> # message auto-generated for no-merge-commit merge: !4349 merge fix-examples into master fix(examples): correct build settings and fp16 validation Created-by: zhangyujia77 Commit-by: zhangyujia77 Merged-by: cann-robot Description: ## 描述 修复examples目录中的构建配置和FP16结果校验问题: 1. 删除8个样例中重复添加的 --npu-arch=${CMAKE_ASC_ARCHITECTURES},统一由ASC CMake模块注入,避免编译命令重复传参。 2. 精简ge_torchair和triple_chevron_notation的链接依赖。 3. 将aclnn_invocation的FP16结果校验从精确比特比较改为容差比较。 ## 关联的Issue 无。 ## 测试 - 对以下8个受影响样例分别执行CMake配置和完整构建,全部通过:ge_torchair、pybind、torch_library、triple_chevron_notation、vector_tiling_strategy、00_basic_compile、03_static_library_compile、matmul_aot_compilation。 ## 文档更新 无。 ## 类型标签 - [x] 🐛 fix: Bug 修复 - [ ] ✨ feat: 新功能 - [ ] ⚡ perf: 性能优化 - [ ] ♻️ refactor: 代码重构 - [ ] 🧪 test: 新增或修改测试 - [ ] 📝 docs: 文档更新 - [ ] 🔧 ci: CI/CD 配置修改 - [ ] ↩️ revert: 回退 - [ ] 🧹 chore: 其他,请具体描述 See merge request: cann/asc-devkit!4349 | 1 个月前 | |
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 天前 | |
add feature introduce doc for AOT Co-authored-by: wangkai<wangkai86@huawei.com> # message auto-generated for no-merge-commit merge: !4088 merge master into master add feature introduce doc for AOT Created-by: kevin365 Commit-by: wangkai Merged-by: cann-robot Description: ## 描述 样例的文档增加AOT样例的目录和链接 ## 关联的Issue NA ## 测试 NA ## 文档更新 更新examples/01_simd_cpp_api/02_features目录 ## 类型标签 - [ ] 🐛 fix: Bug 修复 - [ ] ✨ feat: 新功能 - [ ] ⚡ perf: 性能优化 - [ ] ♻️ refactor: 代码重构 - [ ] 🧪 test: 新增或修改测试 - [X] 📝 docs: 文档更新 - [ ] 🔧 ci: CI/CD 配置修改 - [ ] ↩️ revert: 回退 - [ ] 🧹 chore: 其他,请具体描述 See merge request: cann/asc-devkit!4088 | 2 个月前 | |
add feature introduce doc for AOT Co-authored-by: wangkai<wangkai86@huawei.com> # message auto-generated for no-merge-commit merge: !4088 merge master into master add feature introduce doc for AOT Created-by: kevin365 Commit-by: wangkai Merged-by: cann-robot Description: ## 描述 样例的文档增加AOT样例的目录和链接 ## 关联的Issue NA ## 测试 NA ## 文档更新 更新examples/01_simd_cpp_api/02_features目录 ## 类型标签 - [ ] 🐛 fix: Bug 修复 - [ ] ✨ feat: 新功能 - [ ] ⚡ perf: 性能优化 - [ ] ♻️ refactor: 代码重构 - [ ] 🧪 test: 新增或修改测试 - [X] 📝 docs: 文档更新 - [ ] 🔧 ci: CI/CD 配置修改 - [ ] ↩️ revert: 回退 - [ ] 🧹 chore: 其他,请具体描述 See merge request: cann/asc-devkit!4088 | 2 个月前 |
Features样例介绍
概述
介绍 Ascend C SIMD 特性样例,覆盖编译工程、算子调用、框架接入等场景,用于展示不同特性的典型实现方式和编译运行流程。
样例列表
| 目录名称 | 功能描述 |
|---|---|
| 00_framework | 本样例介绍了PyTorch、TensorFlow、ONNX、GE和ACLGraph场景的自定义算子实现方法 |
| 02_tiling_selector | 展示SIMD矢量计算场景下多核Tiling切分策略和Tiling参数选择方式。 |
| 04_compile | 展示SIMD编译相关的特性样例。 |
| 05_aclrtc | 样例主要介绍使用Aclrtc(运行时编译)接口在Host侧编译字符串形式的Ascend C核函数,并完成编译结果的加载和执行的过程 |
| 06_aot_compilation | 样例主要介绍基于AOT(Ahead-of-Time)编译的性能优化方法 |
| 99_acl_based | 本样例介绍了自定义算子编译工程和Aclnn/Aclop算子调用的实现方法 |