Skip to main content

Programming language for writing efficient custom operators with native support for Python standard specifications

Project description

pyasc

🔥Latest News

  • [2025/11] pyasc项目首次上线。

🚀概述

pyasc是一种用于编写高效自定义算子的编程语言,原生支持python标准规范。基于pyasc编写的算子程序,通过编译器编译和运行时调度,运行在昇腾AI处理器上。
pyasc编程接口与Ascend C类库接口一一对应,旨在提供与Ascend C接口相同的编程能力,目前正逐步开放中。有关pyasc编程接口的支持范围和约束,请参考Ascend C API。对于编程所需的抽象硬件架构和编程模型的相关知识,请参考《Ascend C算子开发》。本项目支持的AI处理器包括:Ascend 910C、Ascend 910B。

🔍目录结构

关键目录如下:

├── bin                 # 工具文件
├── docs                # 说明文档   ├── figures         # 文档图片   └── python-api      # API接口文档
├── include             # 后端头文件和td文件   └── ascir             ## ascir头文件和td文件
├── lib                 # 后端源文件   ├── Dialect           ## mlir方言定义源文件   ├── TableGen          ## tablegen扩展代码文件   └── Target            ## mlir目标代码转换源文件
├── python              # python前端代码   ├── asc               ## 用户可见的python包,对外发布的wheel包中以此目录为主,其他代码则按需打包   ├── src               ## pybind相关代码,cpp格式   ├── test              ## python格式的测试用例集   └── tutorials         ## 供用户参考的样例集
└── test                # 后端的测试用例集
    ├── Dialect           ## mlir方言定义模块测试用例
    ├── Target            ## mlir目标代码转换模块测试用例
    └── tools             ## 后端工具相关测试用例

⚡️快速入门

若您希望快速体验pyasc的使用过程,请访问如下文档获取简易教程。

  • 构建:介绍搭建环境、编译执行、本地验证。
  • 样例执行:介绍如何端到端执行样例代码。

📖学习教程

若您希望深入体验项目或参与项目贡献,请访问如下文档获取详细教程。

👥 合作贡献者

  • 哈尔滨工业大学苏统华老师团队、王甜甜老师团队

📝相关信息

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyasc-0.1.0-cp310-cp310-manylinux_2_31_x86_64.whl (12.6 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.31+ x86-64

File details

Details for the file pyasc-0.1.0-cp310-cp310-manylinux_2_31_x86_64.whl.

File metadata

File hashes

Hashes for pyasc-0.1.0-cp310-cp310-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 37e0208f40d7ccbd813fe36cf669f69f8777dce23bb2bc4a0958cd3351ddf672
MD5 8f242da090defe76fcbe5797a865485b
BLAKE2b-256 ad76850e1827f26387a224304a8737667daa677aed86671ccc4d97cb262665f9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page