| Files | Last commit | Last update |
|---|---|---|
style(all): Fix ruff-check lint errors across the codebase Co-authored-by: junjieHuang<huangjunjie38@h-partners.com> # message auto-generated for no-merge-commit merge: !4934 merge style-python-format into master style(all): Fix ruff-check lint errors across the codebase Created-by: junjieHuang Commit-by: junjieHuang Merged-by: cann-robot Description: Fix ruff-check lint errors across the codebase See merge request: cann/pypto!4934 | 4 months ago | |
style(all): Fix ruff-check lint errors across the codebase Co-authored-by: junjieHuang<huangjunjie38@h-partners.com> # message auto-generated for no-merge-commit merge: !4934 merge style-python-format into master style(all): Fix ruff-check lint errors across the codebase Created-by: junjieHuang Commit-by: junjieHuang Merged-by: cann-robot Description: Fix ruff-check lint errors across the codebase See merge request: cann/pypto!4934 | 4 months ago | |
feat(pass): Remove slice false label Co-authored-by: 2501_92924845<niulinkai@huawei.com> # message auto-generated for no-merge-commit merge: !7696 merge slice1120 into master feat(pass): Remove slice false label Created-by: 2501_92924845 Commit-by: 2501_92924845 Merged-by: cann-robot Description: 背景 Slice 已默认开启。为让示例、测试和用户代码使用一致的编译路径,本 PR 下架 Python 侧及cpp侧的 enable_slice 开关,并清理用例中显式开启或关闭 Slice 的配置。 主要改动 - 移除 Python set_pass_options() 中的 enable_slice 参数及 get_pass_options() 中的对应字段。通过通用配置字典传入该选项时会报错。 - 清理示例、PyPTO Pro 和测试中的 Slice 覆盖配置,移除 pytest 启动时的强制开启逻辑。Gather、Matmul、TransData 和 Distributed ST 等用例恢复使用框架默认配置。 - 修复 ReplaceTensor 在 DDR VIEW 重绑定后未同步更新 COPY_IN 偏移的问题。将写入同一输出的 ASSEMBLE 之间的依赖 token 转移到实际写操作,保留 Conv1D 权重补零与有效权重写入的顺序。补充偏移回归测试,以及 token 搬移成功和拒绝分支的 UT。 See merge request: cann/pypto!7696 | 4 days ago | |
refactor(dist): Fold window memory registration and connect into create_window Co-authored-by: tsungl4<lidongsheng4@huawei.com> # message auto-generated for no-merge-commit merge: !7776 merge channel1 into master refactor(dist): Fold window memory registration and connect into create_window Created-by: tsungl4 Commit-by: tsungl4 Merged-by: cann-robot Description: The previous window setup required a strict 3-step protocol (create_window -> register_memory -> connect), which was easy to misuse: a temporary tensor passed to register_memory could be garbage-collected while the window still referenced its address, region names had to be kept identical across ranks by hand, a not-yet-connected window had to be rejected at launch time, and the jetty table was allocated and copied to device even when no region used the URMA plane (kernels never touch it there). This PR simplifies the flow to a single collective call and skips the useless jetty work. See merge request: cann/pypto!7776 | 2 days ago | |
feat(dist): Add batch channel support Co-authored-by: tsungl4<lidongsheng4@huawei.com> # message auto-generated for no-merge-commit merge: !7666 merge urma1 into master feat(dist): Add batch channel support Created-by: tsungl4 Commit-by: tsungl4 Merged-by: cann-robot Description: 1. Distributed Buffer Channels, Remote Tensors and Channel Locks (Frontend) - Added pld.buffer_channel: a UB staging ring that batches WQEs and publishes them with a single doorbell. - Added dist.remote_tensor: build a peer tensor from a window. - Replaced dist.notify/dist.wait with pl.atomic_* plus explicit channel.lock/channel.unlock. - Frontend validation of write_notify's submit flag, WQE size limits and CQE handling. 2. CCE Codegen for Buffer Channels and Channel Locks (Backend) - Emit buffer-channel staging calls and channel lock/unlock, sharing the SQE word builders with the standalone channel path. - Assert the SQE option, atomic word width, reduce dtype and 256 MiB WQE limits in sanitizer builds. - Corrected staged SQE encoding and publish order (submit before drain); validated buffer-channel payloads and reduced enums. - Dropped the now-unused notify/wait codegen helpers. See merge request: cann/pypto!7666 | 7 days ago | |
feat(pass): Remove slice false label Co-authored-by: 2501_92924845<niulinkai@huawei.com> # message auto-generated for no-merge-commit merge: !7696 merge slice1120 into master feat(pass): Remove slice false label Created-by: 2501_92924845 Commit-by: 2501_92924845 Merged-by: cann-robot Description: 背景 Slice 已默认开启。为让示例、测试和用户代码使用一致的编译路径,本 PR 下架 Python 侧及cpp侧的 enable_slice 开关,并清理用例中显式开启或关闭 Slice 的配置。 主要改动 - 移除 Python set_pass_options() 中的 enable_slice 参数及 get_pass_options() 中的对应字段。通过通用配置字典传入该选项时会报错。 - 清理示例、PyPTO Pro 和测试中的 Slice 覆盖配置,移除 pytest 启动时的强制开启逻辑。Gather、Matmul、TransData 和 Distributed ST 等用例恢复使用框架默认配置。 - 修复 ReplaceTensor 在 DDR VIEW 重绑定后未同步更新 COPY_IN 偏移的问题。将写入同一输出的 ASSEMBLE 之间的依赖 token 转移到实际写操作,保留 Conv1D 权重补零与有效权重写入的顺序。补充偏移回归测试,以及 token 搬移成功和拒绝分支的 UT。 See merge request: cann/pypto!7696 | 4 days ago | |
feat(pass): Remove slice false label Co-authored-by: 2501_92924845<niulinkai@huawei.com> # message auto-generated for no-merge-commit merge: !7696 merge slice1120 into master feat(pass): Remove slice false label Created-by: 2501_92924845 Commit-by: 2501_92924845 Merged-by: cann-robot Description: 背景 Slice 已默认开启。为让示例、测试和用户代码使用一致的编译路径,本 PR 下架 Python 侧及cpp侧的 enable_slice 开关,并清理用例中显式开启或关闭 Slice 的配置。 主要改动 - 移除 Python set_pass_options() 中的 enable_slice 参数及 get_pass_options() 中的对应字段。通过通用配置字典传入该选项时会报错。 - 清理示例、PyPTO Pro 和测试中的 Slice 覆盖配置,移除 pytest 启动时的强制开启逻辑。Gather、Matmul、TransData 和 Distributed ST 等用例恢复使用框架默认配置。 - 修复 ReplaceTensor 在 DDR VIEW 重绑定后未同步更新 COPY_IN 偏移的问题。将写入同一输出的 ASSEMBLE 之间的依赖 token 转移到实际写操作,保留 Conv1D 权重补零与有效权重写入的顺序。补充偏移回归测试,以及 token 搬移成功和拒绝分支的 UT。 See merge request: cann/pypto!7696 | 4 days ago | |
feat(pass): Remove slice false label Co-authored-by: 2501_92924845<niulinkai@huawei.com> # message auto-generated for no-merge-commit merge: !7696 merge slice1120 into master feat(pass): Remove slice false label Created-by: 2501_92924845 Commit-by: 2501_92924845 Merged-by: cann-robot Description: 背景 Slice 已默认开启。为让示例、测试和用户代码使用一致的编译路径,本 PR 下架 Python 侧及cpp侧的 enable_slice 开关,并清理用例中显式开启或关闭 Slice 的配置。 主要改动 - 移除 Python set_pass_options() 中的 enable_slice 参数及 get_pass_options() 中的对应字段。通过通用配置字典传入该选项时会报错。 - 清理示例、PyPTO Pro 和测试中的 Slice 覆盖配置,移除 pytest 启动时的强制开启逻辑。Gather、Matmul、TransData 和 Distributed ST 等用例恢复使用框架默认配置。 - 修复 ReplaceTensor 在 DDR VIEW 重绑定后未同步更新 COPY_IN 偏移的问题。将写入同一输出的 ASSEMBLE 之间的依赖 token 转移到实际写操作,保留 Conv1D 权重补零与有效权重写入的顺序。补充偏移回归测试,以及 token 搬移成功和拒绝分支的 UT。 See merge request: cann/pypto!7696 | 4 days ago | |
feat(dist): Support distribute for pypto_pro Co-authored-by: tsungl4<lidongsheng4@huawei.com> # message auto-generated for no-merge-commit merge: !7250 merge dist3 into master feat(dist): Support distribute for pypto_pro Created-by: tsungl4 Commit-by: tsungl4 Merged-by: cann-robot Description: distributed communication (dist) support (UBMEM&URMA) Adds kernel-side distributed communication capability across the device/machine/IR/codegen/frontend/Python-binding stack: - device: add device-side distributed runtime header pypto_distribute.h (windows, channels, transfers), plus pypto_panic/pypto_assert helpers and DIST_CHECK macros - machine: add WindowContext host runtime and pybind dist module, with a DistributeContext interface - IR: add WindowType and the dist.* op definitions (dist_ops.cpp/py) - codegen: lower dist.* ops to CCE (backend_cce_ops.cpp, backend_cce_block_out_ops.cpp, cce_codegen.cpp); fix line wrapping of the set_ctrl_spr atomic-op-type error message - frontend: expose pld.* APIs (windows/channels/transfers) inside kernels; add pl.tensor_view for no-copy GM tensor sub-views - runtime: resolve dist include paths and sanitizer traps for kernels at compile time - parser: drop stale design references from parser docs - tests: add pld.* frontend dispatch UTs, window ST (test_window.py), and tensor_view parsing/CCE codegen UTs See merge request: cann/pypto!7250 | 27 days ago | |
refactor(dist): Fold window memory registration and connect into create_window Co-authored-by: tsungl4<lidongsheng4@huawei.com> # message auto-generated for no-merge-commit merge: !7776 merge channel1 into master refactor(dist): Fold window memory registration and connect into create_window Created-by: tsungl4 Commit-by: tsungl4 Merged-by: cann-robot Description: The previous window setup required a strict 3-step protocol (create_window -> register_memory -> connect), which was easy to misuse: a temporary tensor passed to register_memory could be garbage-collected while the window still referenced its address, region names had to be kept identical across ranks by hand, a not-yet-connected window had to be rejected at launch time, and the jetty table was allocated and copied to device even when no region used the URMA plane (kernels never touch it there). This PR simplifies the flow to a single collective call and skips the useless jetty work. See merge request: cann/pypto!7776 | 2 days ago |
| Files | Last commit | Last update |
|---|---|---|
| 4 months ago | ||
| 4 months ago | ||
| 4 days ago | ||
| 2 days ago | ||
| 7 days ago | ||
| 4 days ago | ||
| 4 days ago | ||
| 4 days ago | ||
| 27 days ago | ||
| 2 days ago |