news 2026/5/27 21:50:47

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

作者头像

张小明

前端开发工程师

1.2k 24
文章封面图
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 NameDescription
00_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 C<<<>>>direct 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 C<<<>>>direct 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 C<<<>>>direct 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 C<<<>>>direct 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 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),仅供参考

版权声明: 本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若内容造成侵权/违法违规/事实不符,请联系邮箱:809451989@qq.com进行投诉反馈,一经查实,立即删除!
网站建设 2026/5/22 3:54:49

告别手动操作|Win11 OpenClaw 一键安装,电脑自动化躺平式实现

前言 随着 AI 智能体在本地场景快速普及&#xff0c;私有化部署、数据安全、低门槛落地已经成为用户核心需求。开源轻量化 AI 智能体 OpenClaw 2.7.5 版本完成全面升级&#xff0c;在系统适配、服务稳定性与模型集成能力上大幅优化&#xff0c;新版重点强化 Windows 一键部署体…

作者头像 李华
网站建设 2026/5/22 3:51:00

【RAG】【retrievers08】基于Together.ai长上下文嵌入的混合检索

案例目标 本案例展示如何使用Together.ai的长上下文嵌入模型实现混合检索系统&#xff0c;结合块级别和文档级别的相似度计算&#xff0c;提高RAG系统的检索质量。通过将文档嵌入与块嵌入相结合&#xff0c;利用文档级别的语义信息辅助块级别的检索&#xff0c;从而获得更准确…

作者头像 李华
网站建设 2026/5/22 3:46:06

PaddleOCR转RKNN并在RK3588上运行

一、Ubuntu20.04&#xff08;PC端&#xff09;1.创建环境conda create -n deploy python3.6 conda activate deploy2.安装环境链接: https://pan.baidu.com/s/18KoIYMkCUS5-PNb3DCRTHA?pwd5ix5 提取码: 5ix5pip install rknn_toolkit2-1.4.2b30bdd72ff-cp36-cp36m-linux_x86_6…

作者头像 李华
网站建设 2026/5/22 3:42:53

AGV的“眼睛”是什么?一篇看懂激光雷达核心作用

在智能工厂、仓储物流场景中&#xff0c;AGV小车&#xff08;自动导引车&#xff09;是核心“智能搬运工”&#xff0c;而让其实现自主行走的关键&#xff0c;正是被称为“AGV眼睛”的激光雷达。多数人对它的认知停留在自动驾驶领域&#xff0c;殊不知其在AGV领域应用更成熟广泛…

作者头像 李华
网站建设 2026/5/22 3:42:50

远程办公正在重塑技术人的薪资结构:地域差价的终结者

一、远程办公浪潮下&#xff0c;软件测试薪资的地域壁垒正在松动2026年的软件测试行业&#xff0c;远程办公早已不是疫情时期的权宜之计&#xff0c;而是成为了人才市场的结构性常态。对于遍布全国的测试从业者而言&#xff0c;最直观的感受莫过于薪资版图的悄然重构——曾经像…

作者头像 李华