CANN/asc-devkit SIMD C API入门示例
Introduction Sample Overview
【免费下载链接】asc-devkit本项目是CANN 推出的昇腾AI处理器专用的算子程序开发语言,原生支持C和C++标准规范,主要由类库和语言扩展层构成,提供多层级API,满足多维场景算子开发诉求。项目地址: https://gitcode.com/cann/asc-devkit
Summary
Simple examples based on Ascend C, demonstrating custom operator implementations through Ascend C programming language with corresponding C_API implementations.
Sample List
| Directory Name | Description |
|---|---|
| 00_quickstart | This sample demonstrates the kernel function direct call method for the HelloWorld operator based on Ascend C, verifying the operator kernel function from the NPU side, showing the overall flow from invocation to execution |
| 01_add | This sample demonstrates the kernel function direct call method for the Add custom Vector operator based on Ascend C, implementing element-wise addition of two input tensors, supporting main function and kernel function implementation in the same cpp file |
| 04_reg_base_add_compute | This sample demonstrates the kernel function direct call method for the Add operator based on Ascend C (RegBase scenario), implementing element-wise addition of two input tensors through C_API, showing the vector computation flow at on-chip storage and register levels. |
【免费下载链接】asc-devkit本项目是CANN 推出的昇腾AI处理器专用的算子程序开发语言,原生支持C和C++标准规范,主要由类库和语言扩展层构成,提供多层级API,满足多维场景算子开发诉求。项目地址: https://gitcode.com/cann/asc-devkit
创作声明:本文部分内容由AI辅助生成(AIGC),仅供参考
