Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ Please make sure to run `source {path_to_xrt}/setup.sh` before running examples.
The test also depends on PyTorch as CPU reference.

```
cd examples/matmul
AIR_TRANSFORM_TILING_SCRIPT=transform_aie2.mlir python matmul.py
cd examples/matmul_bf16_m64_n64_k64
AIR_TRANSFORM_TILING_SCRIPT=transform_aie2.mlir python matmul_bf16_m64_n64_k64.py
```

**Note:** The `transform_aie2.mlir` transform dialect IR is specifically designed for the AIE2 architecture. For AIE2P architecture, use `transform_aie2p.mlir` instead.
26 changes: 19 additions & 7 deletions examples/generate_readme.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,28 @@
EXAMPLES = [
{
"category": "Matrix",
"name": "Matrix Multiplication",
"path": "matmul",
"name": "Matrix Multiplication (BF16)",
"path": "matmul_bf16_m64_n64_k64",
"datatypes": "bf16",
},
{
"category": "Matrix",
"name": "Padded Matrix Multiplication",
"path": "padded_matmul",
"name": "Padded Matrix Multiplication (F32, A Transposed)",
"path": "matmul_f32_m64_n32_k16_padded_atransposed",
"datatypes": "f32 (bf16 emulation)",
},
{
"category": "Matrix",
"name": "Matrix Multiplication (INT8)",
"path": "matmul_i8_m64_n64_k64",
"datatypes": "i8",
},
{
"category": "Matrix",
"name": "Matrix Multiplication (INT8, Large Tile)",
"path": "matmul_i8_m128_n64_k64",
"datatypes": "i8",
},
{
"category": "Matrix",
"name": "Matrix Multiplication (Autotune)",
Expand Down Expand Up @@ -214,11 +226,11 @@ def generate_readme(base_url=""):
source /opt/xilinx/xrt/setup.sh

# Run an example on AIE2 (NPU1):
cd matmul
AIR_TRANSFORM_TILING_SCRIPT=transform_aie2.mlir python matmul.py
cd matmul_bf16_m64_n64_k64
AIR_TRANSFORM_TILING_SCRIPT=transform_aie2.mlir python matmul_bf16_m64_n64_k64.py

# Run on AIE2P (NPU2):
AIR_TRANSFORM_TILING_SCRIPT=transform_aie2p.mlir python matmul.py
AIR_TRANSFORM_TILING_SCRIPT=transform_aie2p.mlir python matmul_bf16_m64_n64_k64.py
```

## Running All Tests
Expand Down
Loading