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.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
Total release size: 38.7 MB
Release files / cannbot_dsl-0.7.1-cp312-cp312-manylinux_2_28_x86_64.whl
| Download URL | cannbot_dsl-0.7.1-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 |
d33abcafb1bfb828366821b6f18718967ba2fc32584f140c1a0b14f3d58f71ec
|
|
BLAKE2b-256 checksum How to use checksums |
d110beceb19abdfb6e3c1d662ff8978a93a950559c80e837ffb2f00d95ec71fc
|
| 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.1-cp312-cp312-manylinux_2_28_aarch64.whl
| Download URL | cannbot_dsl-0.7.1-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 |
58343723b2b1caa4c77686b3e725bfe6a1779a1d085885891f2df4f2281e46bf
|
|
BLAKE2b-256 checksum How to use checksums |
16ebdf2eadc718ad0dffe63d72f0afa69421b0f9e201ab656eb33419315f5bbd
|
| 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.1-cp311-cp311-manylinux_2_28_x86_64.whl
| Download URL | cannbot_dsl-0.7.1-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 |
2b0266d65f20ed3d94896f5d2eef88d05fb3059a33bf8e85137cbfdae6956e52
|
|
BLAKE2b-256 checksum How to use checksums |
38ff40dfad92c3fd74a38720d74d93d5b6e2c23587ddea7926f5f2d284065714
|
| 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.1-cp311-cp311-manylinux_2_28_aarch64.whl
| Download URL | cannbot_dsl-0.7.1-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 |
ca685eb6eac2144e550f197abdb239e65d2a1676d7dbe353278719f4681a3b53
|
|
BLAKE2b-256 checksum How to use checksums |
f5a5e9491e07d758b371e53f1c2cf781c964e7a504d1b25a9525ed12b01d0bbf
|
| 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.1-cp310-cp310-manylinux_2_28_x86_64.whl
| Download URL | cannbot_dsl-0.7.1-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 |
2eb7e24d9bbb381847b74a6d79faf68aa4ea0ff22518ab5697cd4bbc974c122a
|
|
BLAKE2b-256 checksum How to use checksums |
bb5818326e8ecc88b00039c8eaf30b340174d1363d059b25d4c0fdf2a0d09347
|
| 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.1-cp310-cp310-manylinux_2_28_aarch64.whl
| Download URL | cannbot_dsl-0.7.1-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 |
51999419c9684e64512c9d1d39fd1e4cd9a35b64e750be8c412073a7befe0c6d
|
|
BLAKE2b-256 checksum How to use checksums |
631a6d2be1c0fc8e6acdebec321554aacab7940e0d3bb321bd0859e106880cee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Security for cannbot-dsl 0.7.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.