| Files | Last commit | Last update |
|---|---|---|
fix(pypto_pro): Update aicpu kernel unsupported interface and Add section aicpu Co-authored-by: gcw_bTlukKC6<xuxinlei1@huawei.com> # message auto-generated for no-merge-commit merge: !7845 merge master into master fix(pypto_pro): Update aicpu kernel unsupported interface and Add section aicpu Created-by: huangyuqian Commit-by: gcw_bTlukKC6 Merged-by: cann-robot Description: 为 AICPU kernel 建立专用 IR 目标(SectionKind::Aicpu),用基于 CoreMask 的后端目标校验替代原先“借用 Vector 目标 + 前端黑名单”的做法,使 AICPU 不支持接口的判定收敛到单一权威入口,并保证 Aicpu 目标与 AicpuKernel 入口类型严格配对。AICPU kernel 的 op 白名单(CoreMask 含控制 CPU 的全集)收敛为 6 个:GM Tensor 上的标量读写 block.getval / block.setval(仅限 GM Tensor 操作数,Tile 操作数回落 CV 默认即被拒),以及目标无关的 IR 记账操作 ptr.make_ptr / ptr.make_tensor / struct.create / struct.set;其余所有 op(含未分类默认 CV 的调用、simt.*、Cube/Vector 专属及同步类指令)在 Aicpu target 下一律拒绝。 See merge request: cann/pypto!7845 | 3 days ago | |
feat(pypto_pro): Support conv data movement via ConvTile for load/img2col/move/store Co-authored-by: Zehai<wangzehai3@huawei.com> Co-authored-by: zhouxuan78<zhouxuan78@huawei.com> # message auto-generated for no-merge-commit merge: !7575 merge dev_conv into master feat(pypto_pro): Support conv data movement via ConvTile for load/img2col/move/store Created-by: Zehai Commit-by: Zehai;zhouxuan78 Merged-by: cann-robot Description: Enable the PyPTO Pro conv data path on A5 (3510): pl.load moves framework-native NCHW/NCDHW global tensors into L1 ConvTiles with the format conversion done by the conv DMA during the transfer, and the companion img2col/move/store ops complete the L1 -> L0 -> GM pipeline for conv2d and conv3d. Changes: 1. pl.load / pl.load_tile: accept a conv-layout destination Tile (NC1HWC0 / NDC1HWC0 / FRACTAL_Z / FRACTAL_Z_3D) carrying the window semantics; load_tile block-indexes the fmap layouts and the weight layouts fall back to element offsets 2. pl.img2col: expand one L1 feature-map window into the L0A matrix driven by the compile-time Img2ColConfig window geometry (kernel/stride/dilation/padding/pad_value) 3. pl.move: fold a 4-D packed FRACTAL_Z / FRACTAL_Z_3D weight tile into the L0B Right matrix through the format-converting TEXTRACT path 4. pl.store: write the Acc matrix back to NCHW/NCDHW annotated output tensors via the Fixpipe TStoreAccNCHW/NCDHW path 5. Frontend validation, IR type derivation (HardwareInfo.convLayout encoding) and CCE codegen (ConvTile declarations, per-call conv GlobalTensors with window shapes, TIMG2COL/TEXTRACT/TSTORE emission) 6. Add NCHW/NCDHW to the Layout enum and the Tensor layout annotation 7. Add UTs for the four ops (load/img2col/move/store, 55 cases over conv2d and conv3d) and document all new APIs in the SIMD-API docs See merge request: cann/pypto!7575 | 9 days ago | |
feat(pypto_pro): Add pl.array support Co-authored-by: tsungl4<lidongsheng4@huawei.com> # message auto-generated for no-merge-commit merge: !7763 merge array_type into master feat(pypto_pro): Add pl.array support Created-by: tsungl4 Commit-by: tsungl4 Merged-by: cann-robot Description: support pl.array(N, pl.DT_INT32) type syntax, currently only 1 dim is support See merge request: cann/pypto!7763 | 5 days ago | |
fix(pypto_pro):fix bug of img2ColConfig and convTile load Co-authored-by: Zehai<wangzehai3@huawei.com> # message auto-generated for no-merge-commit merge: !7805 merge fix_img2colConfig into master fix(pypto_pro):fix bug of img2ColConfig and convTile load Created-by: Zehai Commit-by: Zehai Merged-by: cann-robot Description: 1.修复img2ColConfig中的padding参数的错误 Changes:将padding从编译期常量修改为运行期参数 2.修复convTile load中cin向上cin0对齐的错误 Changes:将cin从向上cin0对齐修改为非cin0对齐 See merge request: cann/pypto!7805 | 3 days ago | |
feat(pypto_pro): Support simt cooperative groups Co-authored-by: wuzhongxin<wuzhongxin1@huawei.com> # message auto-generated for no-merge-commit merge: !6826 merge group into master feat(pypto_pro): Support simt cooperative groups Created-by: wuzhongxin Commit-by: wuzhongxin Merged-by: cann-robot Description: Pro新增SIMT协作组功能,支持创建线程组对象,比如当前线程块、Warp 内的活动线程,或从父组划分子组,再通过 group.method() 的形式对某个线程组内的所有线程执行相应操作。 1.支持 ThreadBlock、 ThreadBlockTile、CoalescedGroup 和 GridGroup四种线程组以及对应的创建接口; 2.支持通过 group.method() 调用线程组接口,包括组信息查询(size()、thread_rank()、group_dim() 等)、组内同步(sync())、线程间数据交换(shfl()、shfl_up()、shfl_down()、shfl_xor())及投票(any()、all()、ballot())等。 **用法示例** 启动一个 32 线程的 block,将它划分为 4 个 8 线程子组。每个子组通过 tile.shfl() 广播该组 rank 0 的线程编号。 python import pypto_pro.language as pl import torch @pl.jit(mode="simt", max_threads=32) def broadcast_tile_rank(out: pl.Tensor[[32], pl.DT_UINT32]): block = pl.simt.this_thread_block() #当前线程块对象 tile = pl.simt.tiled_partition(block, 8) #将当前线程块划分为四个8线程子组 tid = block.thread_rank() #当前线程线程块内的编号 out[tid] = tile.shfl(tid, 0) # 当前线程获取其所在子组内编号为0的线程的数据 out = torch.empty((32,), dtype=torch.uint32, device="npu:0") broadcast_tile_rank[1, 32](out) block.thread_rank() 提供块内输出下标,tile.shfl(tid, 0) 中的 0 则是**子组内**的编号。输出依次为 8 个 0、8 个 8、8 个 16 和 8 个 24。 See merge request: cann/pypto!6826 | 10 days ago | |
feat(pypto_pro): Add system and SIMT NOP delay primitives Co-authored-by: tsungl4<lidongsheng4@huawei.com> # message auto-generated for no-merge-commit merge: !7570 merge nop into master feat(pypto_pro): Add system and SIMT NOP delay primitives Created-by: tsungl4 Commit-by: tsungl4 Merged-by: cann-robot Description: Add pl.system.nop(n) and pl.simt.nop(n) for execution-timing control and polling backoff. n is a compile-time constant in [0, INT32_MAX]; NOP is a delay primitive and does not provide synchronization or memory ordering. See merge request: cann/pypto!7570 | 12 days ago | |
fix(pypto_pro): Upload for vf load_align Co-authored-by: liuyu<liuyu205@hisilicon.com> # message auto-generated for no-merge-commit merge: !7476 merge master_sub into master fix(pypto_pro): Upload for vf load_align Created-by: liuyu205 Commit-by: liuyu Merged-by: cann-robot Description: 本PR解决问题单相关问题: - vf load_align问题修复 See merge request: cann/pypto!7476 | 13 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 | 4 days ago |
| Files | Last commit | Last update |
|---|---|---|
| 3 days ago | ||
| 9 days ago | ||
| 5 days ago | ||
| 3 days ago | ||
| 10 days ago | ||
| 12 days ago | ||
| 13 days ago | ||
| 4 days ago |