文件最后提交记录最后更新时间
updated the readme link Co-authored-by: gcw_atM8lhjZ<chenhangxin@huawei.com> # message auto-generated for no-merge-commit merge: !301 merge master into master updated the readme link Created-by: gcw_atM8lhjZ Commit-by: gcw_atM8lhjZ Merged-by: cann-robot Description: ## 描述 优化example中README的描述,更新链接 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #123--> <!-- 如果这个PR是为了解决特定的问题单,请在这里描述问题单单号。--> ## 测试 不涉及 ## 文档更新 examples/00_introduction/00_helloworld/hello_world_aicpu/README.md examples/00_introduction/00_helloworld/hello_world_npu/README.md examples/00_introduction/03_matmulleakyrelu/matmul_leakyrelu/README.md examples/00_introduction/04_simple_operator/add_dynamic/README.md examples/00_introduction/04_simple_operator/broadcast/README.md examples/00_introduction/04_simple_operator/sub/README.md examples/02_features/00_framework_launch/README.md examples/02_features/04_micro_api/move_mask_reg/README.md examples/02_features/04_micro_api/move_successive_align/README.md examples/02_features/04_micro_api/move_successive_unalign/README.md examples/02_features/04_micro_api/move_unsuccessive_align/README.md examples/02_features/04_micro_api/read_write_sync/README.md examples/02_features/04_micro_api/vector_add/README.md examples/02_features/04_micro_api/write_write_sync/README.md examples/02_features/07_data_movement/data_copy_ub2l1/README.md examples/02_features/07_data_movement/data_copy_ub2l1_kfc/README.md examples/02_features/08_tiling/README.md examples/02_features/09_unalign/abs_duplicate/README.md examples/02_features/09_unalign/abs_gather_mask/README.md examples/02_features/09_unalign/reduce_min/README.md examples/02_features/09_unalign/whole_reduce_sum/README.md examples/03_libraries/02_activation/README.md examples/03_libraries/05_reduce/reduce_custom/README.md examples/04_best_practices/01_bank_conflict/01_bank_conflict_950/README.md examples/04_best_practices/01_bank_conflict/bank_conflict/README.md examples/04_best_practices/10_compatibility_cases/data_copy_l1togm_910B/README.md examples/04_best_practices/10_compatibility_cases/data_copy_l1togm_950/README.md examples/04_best_practices/10_compatibility_cases/init_const_value_910B/README.md examples/04_best_practices/10_compatibility_cases/init_const_value_950/README.md examples/04_best_practices/10_compatibility_cases/matmul_s4_910B/README.md examples/04_best_practices/10_compatibility_cases/matmul_s4_950/README.md examples/04_best_practices/10_compatibility_cases/set_loaddata_boundary_910B/README.md examples/04_best_practices/10_compatibility_cases/set_loaddata_boundary_950/README.md examples/04_best_practices/12_high_performance_vf/optimize_vf_continious_align/README.md examples/04_best_practices/12_high_performance_vf/optimize_vf_dual_instr/README.md examples/04_best_practices/12_high_performance_vf/optimize_vf_fusion/README.md examples/04_best_practices/12_high_performance_vf/optimize_vf_loop/README.md examples/04_best_practices/13_optimize_datacopy/optimize_datacopy_loop_mode/README.md examples/04_best_practices/13_optimize_datacopy/optimize_datacopy_nddma/README.md examples/04_best_practices/13_optimize_datacopy/optimize_reduce_invalid_datacopy/README.md ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: See merge request: cann/asc-devkit!3013 个月前
updated the readme link Co-authored-by: gcw_atM8lhjZ<chenhangxin@huawei.com> # message auto-generated for no-merge-commit merge: !301 merge master into master updated the readme link Created-by: gcw_atM8lhjZ Commit-by: gcw_atM8lhjZ Merged-by: cann-robot Description: ## 描述 优化example中README的描述,更新链接 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #123--> <!-- 如果这个PR是为了解决特定的问题单,请在这里描述问题单单号。--> ## 测试 不涉及 ## 文档更新 examples/00_introduction/00_helloworld/hello_world_aicpu/README.md examples/00_introduction/00_helloworld/hello_world_npu/README.md examples/00_introduction/03_matmulleakyrelu/matmul_leakyrelu/README.md examples/00_introduction/04_simple_operator/add_dynamic/README.md examples/00_introduction/04_simple_operator/broadcast/README.md examples/00_introduction/04_simple_operator/sub/README.md examples/02_features/00_framework_launch/README.md examples/02_features/04_micro_api/move_mask_reg/README.md examples/02_features/04_micro_api/move_successive_align/README.md examples/02_features/04_micro_api/move_successive_unalign/README.md examples/02_features/04_micro_api/move_unsuccessive_align/README.md examples/02_features/04_micro_api/read_write_sync/README.md examples/02_features/04_micro_api/vector_add/README.md examples/02_features/04_micro_api/write_write_sync/README.md examples/02_features/07_data_movement/data_copy_ub2l1/README.md examples/02_features/07_data_movement/data_copy_ub2l1_kfc/README.md examples/02_features/08_tiling/README.md examples/02_features/09_unalign/abs_duplicate/README.md examples/02_features/09_unalign/abs_gather_mask/README.md examples/02_features/09_unalign/reduce_min/README.md examples/02_features/09_unalign/whole_reduce_sum/README.md examples/03_libraries/02_activation/README.md examples/03_libraries/05_reduce/reduce_custom/README.md examples/04_best_practices/01_bank_conflict/01_bank_conflict_950/README.md examples/04_best_practices/01_bank_conflict/bank_conflict/README.md examples/04_best_practices/10_compatibility_cases/data_copy_l1togm_910B/README.md examples/04_best_practices/10_compatibility_cases/data_copy_l1togm_950/README.md examples/04_best_practices/10_compatibility_cases/init_const_value_910B/README.md examples/04_best_practices/10_compatibility_cases/init_const_value_950/README.md examples/04_best_practices/10_compatibility_cases/matmul_s4_910B/README.md examples/04_best_practices/10_compatibility_cases/matmul_s4_950/README.md examples/04_best_practices/10_compatibility_cases/set_loaddata_boundary_910B/README.md examples/04_best_practices/10_compatibility_cases/set_loaddata_boundary_950/README.md examples/04_best_practices/12_high_performance_vf/optimize_vf_continious_align/README.md examples/04_best_practices/12_high_performance_vf/optimize_vf_dual_instr/README.md examples/04_best_practices/12_high_performance_vf/optimize_vf_fusion/README.md examples/04_best_practices/12_high_performance_vf/optimize_vf_loop/README.md examples/04_best_practices/13_optimize_datacopy/optimize_datacopy_loop_mode/README.md examples/04_best_practices/13_optimize_datacopy/optimize_datacopy_nddma/README.md examples/04_best_practices/13_optimize_datacopy/optimize_reduce_invalid_datacopy/README.md ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: See merge request: cann/asc-devkit!3013 个月前
Replace blockDim with numBlocks Co-authored-by: 王旭<wangxu243@huawei.com> # message auto-generated for no-merge-commit merge: !237 merge master into master Replace blockDim with numBlocks Created-by: wx369 Commit-by: 王旭 Merged-by: cann-robot Description: ## 描述 修正blockDim命名,改为numBlocks ## 关联的Issue 不涉及 ## 测试 通过了样例的编译运行 ## 文档更新 不涉及 ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [x] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: See merge request: cann/asc-devkit!2373 个月前
updated the readme link Co-authored-by: gcw_atM8lhjZ<chenhangxin@huawei.com> # message auto-generated for no-merge-commit merge: !301 merge master into master updated the readme link Created-by: gcw_atM8lhjZ Commit-by: gcw_atM8lhjZ Merged-by: cann-robot Description: ## 描述 优化example中README的描述,更新链接 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #123--> <!-- 如果这个PR是为了解决特定的问题单,请在这里描述问题单单号。--> ## 测试 不涉及 ## 文档更新 examples/00_introduction/00_helloworld/hello_world_aicpu/README.md examples/00_introduction/00_helloworld/hello_world_npu/README.md examples/00_introduction/03_matmulleakyrelu/matmul_leakyrelu/README.md examples/00_introduction/04_simple_operator/add_dynamic/README.md examples/00_introduction/04_simple_operator/broadcast/README.md examples/00_introduction/04_simple_operator/sub/README.md examples/02_features/00_framework_launch/README.md examples/02_features/04_micro_api/move_mask_reg/README.md examples/02_features/04_micro_api/move_successive_align/README.md examples/02_features/04_micro_api/move_successive_unalign/README.md examples/02_features/04_micro_api/move_unsuccessive_align/README.md examples/02_features/04_micro_api/read_write_sync/README.md examples/02_features/04_micro_api/vector_add/README.md examples/02_features/04_micro_api/write_write_sync/README.md examples/02_features/07_data_movement/data_copy_ub2l1/README.md examples/02_features/07_data_movement/data_copy_ub2l1_kfc/README.md examples/02_features/08_tiling/README.md examples/02_features/09_unalign/abs_duplicate/README.md examples/02_features/09_unalign/abs_gather_mask/README.md examples/02_features/09_unalign/reduce_min/README.md examples/02_features/09_unalign/whole_reduce_sum/README.md examples/03_libraries/02_activation/README.md examples/03_libraries/05_reduce/reduce_custom/README.md examples/04_best_practices/01_bank_conflict/01_bank_conflict_950/README.md examples/04_best_practices/01_bank_conflict/bank_conflict/README.md examples/04_best_practices/10_compatibility_cases/data_copy_l1togm_910B/README.md examples/04_best_practices/10_compatibility_cases/data_copy_l1togm_950/README.md examples/04_best_practices/10_compatibility_cases/init_const_value_910B/README.md examples/04_best_practices/10_compatibility_cases/init_const_value_950/README.md examples/04_best_practices/10_compatibility_cases/matmul_s4_910B/README.md examples/04_best_practices/10_compatibility_cases/matmul_s4_950/README.md examples/04_best_practices/10_compatibility_cases/set_loaddata_boundary_910B/README.md examples/04_best_practices/10_compatibility_cases/set_loaddata_boundary_950/README.md examples/04_best_practices/12_high_performance_vf/optimize_vf_continious_align/README.md examples/04_best_practices/12_high_performance_vf/optimize_vf_dual_instr/README.md examples/04_best_practices/12_high_performance_vf/optimize_vf_fusion/README.md examples/04_best_practices/12_high_performance_vf/optimize_vf_loop/README.md examples/04_best_practices/13_optimize_datacopy/optimize_datacopy_loop_mode/README.md examples/04_best_practices/13_optimize_datacopy/optimize_datacopy_nddma/README.md examples/04_best_practices/13_optimize_datacopy/optimize_reduce_invalid_datacopy/README.md ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: See merge request: cann/asc-devkit!3013 个月前
Replace blockDim with numBlocks Co-authored-by: 王旭<wangxu243@huawei.com> # message auto-generated for no-merge-commit merge: !237 merge master into master Replace blockDim with numBlocks Created-by: wx369 Commit-by: 王旭 Merged-by: cann-robot Description: ## 描述 修正blockDim命名,改为numBlocks ## 关联的Issue 不涉及 ## 测试 通过了样例的编译运行 ## 文档更新 不涉及 ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [x] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: See merge request: cann/asc-devkit!2373 个月前
优化transpose等样例代码及README描述 Co-authored-by: gcw_atM8lhjZ<chenhangxin@huawei.com> # message auto-generated for no-merge-commit merge: !223 merge master into master 优化transpose等样例代码及README描述 Created-by: gcw_atM8lhjZ Commit-by: gcw_atM8lhjZ Merged-by: cann-robot Description: ## 描述 优化transpose等样例代码及README描述 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #123--> <!-- 如果这个PR是为了解决特定的问题单,请在这里描述问题单单号。--> ## 测试 样例本地自验证 测试样例: example\00_introduction\01_add\basic_api_memory_allocator_add example\03_libraries\09_transpose 测试结果: test pass! ## 文档更新 更新example\00_introduction、example\03_libraries中的README ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [x] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: See merge request: cann/asc-devkit!2233 个月前
README.md

SimpleOperator样例介绍

概述

样例介绍了5个基于Ascend C的算子的核函数直调样例,涵盖AddN、Broadcast、Gather、Sub以及向量Add等典型算子,展示了动态Tensor、纯SIMT编程、临时缓冲区使用等关键技术,充分体现了Ascend C在高性能算子开发中的灵活性与高效性。

算子开发样例

目录名称 功能描述
add_dynamic 本样例演示基于动态Tensor编程模型的AddN算子实现,该实现采用ListTensorDesc结构处理多输入参数,结合TQue内存管理机制实现数据搬运与计算任务的协同调度
broadcast 本样例展示了一个支持多种数据类型(如bfloat,int8,float,half等)和多种形状(如(32, 1024),(8, 1023)等)的输入张量执行逐元素加法
pure_simt_gather 样例基于Ascend C纯SIMT编程方式实现Gather算子,从输入张量中采集指定的m行数据,展示离散内存访问类算子的开发方法
sub 本样例演示了如何通过自定义核函数实现高性能的逐元素减法(Sub)运算。算子核心功能是完成两个形状相同的输入张量x与y的逐元素相减
tmp_buffer 本样例展示了一个支持bfloat16_t数据类型的向量加法(Add)算子,并重点演示了在算子计算过程中使用临时缓冲区(TmpBuf)进行数据转换的典型方法