| Files | Last commit | Last update |
|---|---|---|
feature(pypto_pro): Upload for vf support pl.astype Co-authored-by: liuyu<liuyu205@hisilicon.com> # message auto-generated for no-merge-commit merge: !7917 merge master_st into master feature(pypto_pro): Upload for vf support pl.astype Created-by: liuyu205 Commit-by: liuyu Merged-by: cann-robot Description: 本PR解决问题单相关问题: - 支持vf内调用pl.astype See merge request: cann/pypto!7917 | 4 hours 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 | 11 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 | 6 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 | 4 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 | 12 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 | 13 days ago | |
fix(pypto_pro): Upload for ir check Co-authored-by: liuyu<liuyu205@hisilicon.com> # message auto-generated for no-merge-commit merge: !7846 merge master_sub into master fix(pypto_pro): Upload for ir check Created-by: liuyu205 Commit-by: liuyu Merged-by: cann-robot Description: 本PR解决问题单相关问题: - 解决vf的ir类型校验 See merge request: cann/pypto!7846 | 1 day ago | |
feat(dist): add reduce-on-read channel operation Co-authored-by: tsungl4<lidongsheng4@huawei.com> # message auto-generated for no-merge-commit merge: !7903 merge read_reduce into master feat(dist): add reduce-on-read channel operation Created-by: tsungl4 Commit-by: tsungl4 Merged-by: cann-robot Description: Add Channel.read_reduce and BufferChannel.read_reduce: a READ WQE with the UDF reduce descriptor, accumulating the remote source into a local tensor. Wire it through both Python classes, the IR builders, parser routing, the C++ op registry, the CCE backend, API docs, UTs, the ring STs and the bench baselines. Also add Channel.Submit() so channel.submit codegen and BufferChannel.Submit() no longer reach into jetty_. See merge request: cann/pypto!7903 | 21 hours ago |
| Files | Last commit | Last update |
|---|---|---|
| 4 hours ago | ||
| 11 days ago | ||
| 6 days ago | ||
| 4 days ago | ||
| 12 days ago | ||
| 13 days ago | ||
| 1 day ago | ||
| 21 hours ago |