CANN/asc-devkit:Ascend C基础API示例
Basic API Sample Introduction
【免费下载链接】asc-devkit本项目是CANN 推出的昇腾AI处理器专用的算子程序开发语言,原生支持C和C++标准规范,主要由类库和语言扩展层构成,提供多层级API,满足多维场景算子开发诉求。项目地址: https://gitcode.com/cann/asc-devkit
Overview
This sample introduces the usage of Ascend C Basic API, including data movement, matrix computation, memory vector computation, resource management, synchronization control, system access, atomic operations, and scalar computation.
Sample List
| Directory Name | Description |
|---|---|
| 00_data_movement | This directory contains samples for multiple APIs related to data movement, demonstrating the usage of data movement interfaces. |
| 01_matrix_compute | This sample directory uses operators such as batch_mmad and fixpipe_co12c1_quantization as examples to demonstrate the usage of matrix computation interfaces. |
| 02_memory_vector_compute | This sample directory uses operators such as reduce, sort, and transpose as examples to demonstrate the usage of memory vector computation interfaces. |
| 03_reg_vector_compute | This directory contains samples for multiple APIs related to vector computation, implemented based on Reg programming interfaces. |
| 04_resource_management | This directory contains samples for multiple APIs related to resource management. Each sample is based on the Ascend C<<<>>>direct invocation method, supporting the implementation of both the main function and kernel function in the same cpp file. |
| 06_sync_control | This directory contains samples for multiple APIs related to synchronization control. Each sample is based on the Ascend C<<<>>>direct invocation method, supporting the implementation of both the main function and kernel function in the same cpp file. |
| 07_system_access | This directory contains samples for multiple APIs related to system variable access. Each sample is based on the Ascend C<<<>>>direct invocation method, supporting the implementation of both the main function and kernel function in the same cpp file. |
| 08_atomic_operations | This directory contains samples for multiple APIs related to atomic operations. Each sample is based on the Ascend C<<<>>>direct invocation method, supporting the implementation of both the main function and kernel function in the same cpp file. |
| 09_scalar_computation | This directory contains samples for multiple APIs related to scalar computation. Each sample is based on the Ascend C<<<>>>direct invocation method, supporting the implementation of both the main function and kernel function in the same cpp file. |
【免费下载链接】asc-devkit本项目是CANN 推出的昇腾AI处理器专用的算子程序开发语言,原生支持C和C++标准规范,主要由类库和语言扩展层构成,提供多层级API,满足多维场景算子开发诉求。项目地址: https://gitcode.com/cann/asc-devkit
创作声明:本文部分内容由AI辅助生成(AIGC),仅供参考
