Skip to main content

CANNBotDSL

1. 项目简介 (Introduction)


2. 目录结构 (Directory Structure)


3. 构建指南 (Build Instructions)

请根据目标独立阅读对应文档。开发与发行指南各自包含完整步骤,不互为前置。

目标 文档入口
新环境搭建、native CMake、editable 和增量编译(开发) 构建与增量开发指南
PEP 517 raw Wheel、auditwheel、验证和发布(发行) Wheel 构建与发布指南
算子导出、编译工厂缓存与 ACLNN Host 接口 OpKit
运行时和调试环境变量 环境变量参考
GM、片上内存和 raw VF 寄存器打印 原生 dump 使用说明
向 CANN profiling 工具上报 kernel 和 Tensor 元数据 Profiling Tensor 信息上报
Tensor 向量计算实验组件(暂时移除)及恢复方式 实验组件状态
host 侧硬件平台查询(SoC 版本、核数、片上存储容量) 平台信息查询
for 循环、后端 unroll 与前端静态展开 循环与 UNROLL
自动分配与手动 view 绑定 片上存储接口
片上存储标准化、容量边界与回归结果 标准化验收记录
同核 Channel 显式游标、Tensor 与自动同步 Channel 使用说明
Tensor 下标、None keep 语义与迁移 Tensor 下标与切片
GM Tensor 轴排列零拷贝 view permute 设计与 API

CANNBotDSL 在 CANN 9.1/9.2 环境提供 dump_tensor 和 raw VF dump_reg,支持 GM、UB、L1、 L0C、BIAS、FIXBUF 地址分派与寄存器打印。自动 Channel、视图偏移、显示 shape、 地址对齐及 VF 缓冲预算均有对应校验。用法、测试命令和验证范围见 原生 dump 使用说明。


4. Submodule 管理 (Submodule Management)

cannbot-arena 通过 Git submodule 引入。父仓库会锁定其提交版本。

首次克隆仓库时,可以同时初始化 submodule:

git clone --recurse-submodules https://gitcode.com/mabing1118/cannbot-dsl.git

对于已经克隆的仓库,或在更新父仓库后,将 submodule 同步到父仓库锁定的版本:

git submodule update --init --recursive

维护者如需将 cannbot-arena 更新到上游最新版本,应检查变化并提交新的 submodule 指针:

git submodule update --remote cannbot-arena
git diff --submodule=log -- cannbot-arena
git add cannbot-arena
git commit -m "chore: update cannbot-arena submodule"

入口使用 @host,设备函数使用 @kernel,内联辅助函数使用 @jit。 迁移与调用矩阵见 Host/kernel/JIT 调用约定。

Metadata

Release files for cannbot-dsl 0.7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for cannbot-dsl 0.7.0
File
cannbot_dsl-0.7.0-cp312-cp312-manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ x86-64 Details
cannbot_dsl-0.7.0-cp312-cp312-manylinux_2_28_aarch64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ ARM64 Details
cannbot_dsl-0.7.0-cp311-cp311-manylinux_2_28_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.28+ x86-64 Details
cannbot_dsl-0.7.0-cp311-cp311-manylinux_2_28_aarch64.whl CPython 3.11 CPython 3.11 Linux glibc 2.28+ ARM64 Details
cannbot_dsl-0.7.0-cp310-cp310-manylinux_2_28_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.28+ x86-64 Details
cannbot_dsl-0.7.0-cp310-cp310-manylinux_2_28_aarch64.whl CPython 3.10 CPython 3.10 Linux glibc 2.28+ ARM64 Details

Total release size: 38.7 MB

Release files / cannbot_dsl-0.7.0-cp312-cp312-manylinux_2_28_x86_64.whl

Download URL cannbot_dsl-0.7.0-cp312-cp312-manylinux_2_28_x86_64.whl
Size 6.6 MB
Tags CPython 3.12 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
5d22cae486da9612e38c470d2bed4eedcf5981b4f77cdf943a380d85c7f86292
BLAKE2b-256 checksum
How to use checksums
a8a5642060b1282a1dd6e6802095cc0822b6f360392e1811f017e95a8ee722a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / cannbot_dsl-0.7.0-cp312-cp312-manylinux_2_28_aarch64.whl

Download URL cannbot_dsl-0.7.0-cp312-cp312-manylinux_2_28_aarch64.whl
Size 6.3 MB
Tags CPython 3.12 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
bea7e6a1f23e5ace930cf43e7e00a7736aa969e9b4ffb610fdf35f5403feb6bb
BLAKE2b-256 checksum
How to use checksums
a5bcc2310566631092a83c3794c81ffe454327a7adb6f1e02344f4bc4234dbf7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / cannbot_dsl-0.7.0-cp311-cp311-manylinux_2_28_x86_64.whl

Download URL cannbot_dsl-0.7.0-cp311-cp311-manylinux_2_28_x86_64.whl
Size 6.6 MB
Tags CPython 3.11 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
5aa95eb338436f988cadffd63f9c204ae75ff5dd1b57ed66ff11eb4709556668
BLAKE2b-256 checksum
How to use checksums
93d7da88ec750b27fd9fc9bb06fa5114328a8b3eea47454fd51cfe429f663951
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / cannbot_dsl-0.7.0-cp311-cp311-manylinux_2_28_aarch64.whl

Download URL cannbot_dsl-0.7.0-cp311-cp311-manylinux_2_28_aarch64.whl
Size 6.3 MB
Tags CPython 3.11 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
28691280da199b46deb5034af99b2e3b67094cd903a7be27bf49b8536cbd0449
BLAKE2b-256 checksum
How to use checksums
2191d3f1963f671c9063594c1604fb47115ae01ca1ca2466c31e5786b1d7a795
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / cannbot_dsl-0.7.0-cp310-cp310-manylinux_2_28_x86_64.whl

Download URL cannbot_dsl-0.7.0-cp310-cp310-manylinux_2_28_x86_64.whl
Size 6.5 MB
Tags CPython 3.10 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
6cc38bb43e80ad17ad09b1490ffd98b6925deaa5d2d635b939f782bf1346cbec
BLAKE2b-256 checksum
How to use checksums
c862a3f329cde7166ab8302bbab3bef0b456f64850a03f3085bdf51ded2b7c76
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / cannbot_dsl-0.7.0-cp310-cp310-manylinux_2_28_aarch64.whl

Download URL cannbot_dsl-0.7.0-cp310-cp310-manylinux_2_28_aarch64.whl
Size 6.3 MB
Tags CPython 3.10 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
780cc06b0a80de19787aac84d03583c47d27494da3e6f9506501f830afa8ad80
BLAKE2b-256 checksum
How to use checksums
e959e5e44a811c6118ea6e7f9f79d31f9d6eadc2dffaf5733d8a883043728534
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.7.0 This release

6 release files

0.0.3

2 release files

0.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page