CANN/asc-devkit:Ascend C基础API示例

发布时间:2026/5/22 4:02:03

CANN/asc-devkit:Ascend C基础API示例 Basic API Sample Introduction【免费下载链接】asc-devkit本项目是CANN 推出的昇腾AI处理器专用的算子程序开发语言原生支持C和C标准规范主要由类库和语言扩展层构成提供多层级API满足多维场景算子开发诉求。项目地址: https://gitcode.com/cann/asc-devkitOverviewThis 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 ListDirectory NameDescription00_data_movementThis directory contains samples for multiple APIs related to data movement, demonstrating the usage of data movement interfaces.01_matrix_computeThis 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_computeThis sample directory uses operators such as reduce, sort, and transpose as examples to demonstrate the usage of memory vector computation interfaces.03_reg_vector_computeThis directory contains samples for multiple APIs related to vector computation, implemented based on Reg programming interfaces.04_resource_managementThis directory contains samples for multiple APIs related to resource management. Each sample is based on the Ascend Cdirect invocation method, supporting the implementation of both the main function and kernel function in the same cpp file.06_sync_controlThis directory contains samples for multiple APIs related to synchronization control. Each sample is based on the Ascend Cdirect invocation method, supporting the implementation of both the main function and kernel function in the same cpp file.07_system_accessThis directory contains samples for multiple APIs related to system variable access. Each sample is based on the Ascend Cdirect invocation method, supporting the implementation of both the main function and kernel function in the same cpp file.08_atomic_operationsThis directory contains samples for multiple APIs related to atomic operations. Each sample is based on the Ascend Cdirect invocation method, supporting the implementation of both the main function and kernel function in the same cpp file.09_scalar_computationThis directory contains samples for multiple APIs related to scalar computation. Each sample is based on the Ascend Cdirect 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),仅供参考

相关新闻