| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
modify copy & data_copy_pad Co-authored-by: yuaner1057<zengjiayuan1@h-partners.com> # message auto-generated for no-merge-commit merge: !1563 merge examples into master modify copy & data_copy_pad Created-by: yuaner1057 Commit-by: yuaner1057 Merged-by: cann-robot Description: ## 描述 copy & data_copy_pad 新增场景 ## 关联的Issue 关联Issue #468 ## 文档更新 修改 examples/01_simd_cpp_api/02_features/03_basic_api/00_data_movement/data_copy_pad_gm2ub_ub2gm/README.md 修改 examples/01_simd_cpp_api/02_features/03_basic_api/00_data_movement/copy_ub2ub/README.md ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 fix: Bug 修复 - [ ] ✨ feat: 新功能 - [ ] ⚡ perf: 性能优化 - [ ] ♻️ refactor: 代码重构 - [ ] 🧪 test: 新增或修改测试 - [x] 📝 docs: 文档更新 - [ ] 🔧 ci: CI/CD 配置修改 - [ ] ↩️ revert: 回退 - [x] 🧹 chore: 样例修改 See merge request: cann/asc-devkit!1563 | 5 个月前 | |
modify copy & data_copy_pad Co-authored-by: yuaner1057<zengjiayuan1@h-partners.com> # message auto-generated for no-merge-commit merge: !1563 merge examples into master modify copy & data_copy_pad Created-by: yuaner1057 Commit-by: yuaner1057 Merged-by: cann-robot Description: ## 描述 copy & data_copy_pad 新增场景 ## 关联的Issue 关联Issue #468 ## 文档更新 修改 examples/01_simd_cpp_api/02_features/03_basic_api/00_data_movement/data_copy_pad_gm2ub_ub2gm/README.md 修改 examples/01_simd_cpp_api/02_features/03_basic_api/00_data_movement/copy_ub2ub/README.md ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 fix: Bug 修复 - [ ] ✨ feat: 新功能 - [ ] ⚡ perf: 性能优化 - [ ] ♻️ refactor: 代码重构 - [ ] 🧪 test: 新增或修改测试 - [x] 📝 docs: 文档更新 - [ ] 🔧 ci: CI/CD 配置修改 - [ ] ↩️ revert: 回退 - [x] 🧹 chore: 样例修改 See merge request: cann/asc-devkit!1563 | 5 个月前 | |
modify copy & data_copy_pad Co-authored-by: yuaner1057<zengjiayuan1@h-partners.com> # message auto-generated for no-merge-commit merge: !1563 merge examples into master modify copy & data_copy_pad Created-by: yuaner1057 Commit-by: yuaner1057 Merged-by: cann-robot Description: ## 描述 copy & data_copy_pad 新增场景 ## 关联的Issue 关联Issue #468 ## 文档更新 修改 examples/01_simd_cpp_api/02_features/03_basic_api/00_data_movement/data_copy_pad_gm2ub_ub2gm/README.md 修改 examples/01_simd_cpp_api/02_features/03_basic_api/00_data_movement/copy_ub2ub/README.md ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 fix: Bug 修复 - [ ] ✨ feat: 新功能 - [ ] ⚡ perf: 性能优化 - [ ] ♻️ refactor: 代码重构 - [ ] 🧪 test: 新增或修改测试 - [x] 📝 docs: 文档更新 - [ ] 🔧 ci: CI/CD 配置修改 - [ ] ↩️ revert: 回退 - [x] 🧹 chore: 样例修改 See merge request: cann/asc-devkit!1563 | 5 个月前 | |
modify copy & data_copy_pad Co-authored-by: yuaner1057<zengjiayuan1@h-partners.com> # message auto-generated for no-merge-commit merge: !1563 merge examples into master modify copy & data_copy_pad Created-by: yuaner1057 Commit-by: yuaner1057 Merged-by: cann-robot Description: ## 描述 copy & data_copy_pad 新增场景 ## 关联的Issue 关联Issue #468 ## 文档更新 修改 examples/01_simd_cpp_api/02_features/03_basic_api/00_data_movement/data_copy_pad_gm2ub_ub2gm/README.md 修改 examples/01_simd_cpp_api/02_features/03_basic_api/00_data_movement/copy_ub2ub/README.md ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 fix: Bug 修复 - [ ] ✨ feat: 新功能 - [ ] ⚡ perf: 性能优化 - [ ] ♻️ refactor: 代码重构 - [ ] 🧪 test: 新增或修改测试 - [x] 📝 docs: 文档更新 - [ ] 🔧 ci: CI/CD 配置修改 - [ ] ↩️ revert: 回退 - [x] 🧹 chore: 样例修改 See merge request: cann/asc-devkit!1563 | 5 个月前 |
Introduction样例介绍
概述
基于Ascend C的简单的示例,通过Ascend C编程语言实现了自定义算子,分别给出对应的C_API实现。
样例列表
| 目录名称 | 功能描述 |
|---|---|
| 00_quickstart | 样例介绍了基于Ascend C的HelloWorld算子的核函数直调方法,从NPU侧运行核验证算子核函数,展示核函数从调用到执行的整体流程 |
| 01_add | 本样例介绍了基于Ascend C的Add自定义Vector算子的核函数直调方法,实现两个输入张量的逐元素相加,支持main函数和kernel函数在同一个cpp文件中实现 |
| 04_reg_base_add_compute | 本样例介绍了基于Ascend C的Add算子核函数直调方法(RegBase场景),通过C_API实现两个输入张量的逐元素相加,展示了片上存储和寄存器层级的向量计算流程。 |