Shihan Fang
Shihan Fang
Hi, this issue happens because the module built with `target="vitis_hls", mode="hw_emu"` handles arguments differently from the default `target="llvm"`. For `target="vitis_hls", mode="hw_emu"`, you need to explicitly create an output array and...
[update] Previous casting rule also seems inappropriate for aie backend. For example, ```python Ty = int32 M = 1024 @df.region() def top(): @df.kernel(mapping=[1]) def core(A: Ty[M], B: Ty[M], C: Ty[M]):...
**Error 1: AssertionError** This issue is caused by a bug in the implementation. The primitive generator `gen_gemm_mapping_primitive` is only suitable for cases where `Pm` and `Pn` are divisible by `col_num`...
For **Error 1**, the key issue is: we configure the AIE array connections before kernel execution. When mapping to a `4x4` array, each row's four physical compute tiles and each...
Actually, the source code itself is invalid. I think this also violates Allo’s syntax. We should fix this test case. I think we should also add an internal check to...
There are still some unclear points in the current interface design. For this specific GEMM example, the `allreduce` requires each `pk` to provide its `part_C`, but the final `C[:,:]` assignment...
For internal virtual graph construction, a reasonable approach is to introduce a dedicated **reduction node** for `allreduce`. - All nodes that provide partial values will connect to this reduction node...
Better interface and usage ```python LyA = Layout("S1S2") LyB = Layout("S2S0") LyC = Layout("S1S0") @df.region() def top(): @df.kernel(mapping=[Pk, Pm, Pn]) def gemm(A: Ty[M, K] @ LyA, B: Ty[K, N] @...
**Updated Design and Usage** ```python LyA = Layout("S1S2") LyB = Layout("S2S0") LyC = Layout("S1S0") @df.region() def top(): @df.kernel(mapping=[Pk, Pm, Pn]) def gemm(A: Ty[M, K] @ LyA, B: Ty[K, N] @...