文件最后提交记录最后更新时间
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 个月前
remove sid Co-authored-by: li-yuanjie-da<liyuanjie5@h-partners.com> # message auto-generated for no-merge-commit merge: !227 merge master into master remove sid Created-by: li-yuanjie-da Commit-by: li-yuanjie-da Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 删除c_api对外接口中的sid参数,改为内部设置默认值 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #123--> <!-- 如果这个PR是为了解决特定的问题单,请在这里描述问题单单号。--> ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> docs/api/context/c_api/cube_datamove/asc_load_image_to_cbuf.md docs/api/context/c_api/cube_datamove/copy_gm2l1.md docs/api/context/c_api/cube_datamove/copy_gm2l1_nd2nz.md docs/api/context/c_api/vector_datamove/asc_copy_gm2ub.md docs/api/context/c_api/vector_datamove/asc_copy_gm2ub_align.md docs/api/context/c_api/vector_datamove/asc_copy_ub2gm.md docs/api/context/c_api/vector_datamove/asc_copy_ub2gm_align.md ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [x] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: See merge request: cann/asc-devkit!2273 个月前
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 个月前
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 个月前
优化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

Introduce样例介绍

概述

基于Ascend C的简单的示例,通过Ascend C编程语言实现了自定义算子,分别给出对应的<<<>>>直调实现,适合初学者

算子开发样例

目录名称 功能描述
00_helloworld 样例介绍了基于Ascend C的HelloWorld算子的核函数直调方法,分别从NPU、AICPU测运行核验证算子核函数,展示核函数从调用到执行的整体流程
01_add 本样例介绍了基于Ascend C的Add自定义Vector算子的核函数直调方法,实现两个输入张量的逐元素相加,支持main函数和kernel函数在同一个cpp文件中实现
02_matmul 本样例介绍了基于Ascend C的Matmul算子的核函数直调方法,可最大化利用AI处理器的并行计算能力,显著提升算子的执行效率,使用与高性能推理与训练场景
03_matmulleakyrelu 本样例介绍了基于Ascend C的MatmulLeakyRelu自定义算子的核函数直调方法,能够完成矩阵乘加与LeakyReLU激活的融合计算,该方式将关键计算步骤在硬件层面高效协同执行,显著降低内存访问开销与计算延时
04_simple_operator 样例介绍了5个基于Ascend C的算子的核函数直调样例,涵盖AddN、Broadcast、Gather、Sub以及向量Add等典型算子,展示了动态Tensor、纯SIMT编程、临时缓冲区使用等关键技术,充分体现了Ascend C在高性能算子开发中的灵活性与高效性