Triton-XDNA Examples
These examples demonstrate how to write Triton kernels that compile and run on AMD XDNA™ NPUs via the MLIR-AIR compilation flow.
Operator Dashboard
Legend
- ✅ Transform file available (device target supported)
- — Not yet available
AIE2 = AMD Ryzen™ AI (Phoenix, NPU1) AIE2P = AMD Ryzen™ AI (Strix, NPU2)
Running Examples
Make sure XRT is sourced and a virtual environment with triton-xdna is active (see top-level README):
source /opt/xilinx/xrt/setup.sh
# Run an example on AIE2 (NPU1):
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_bf16_m64_n64_k64.py
Running All Tests
python scripts/run_tests.py --device aie2 --verbose
python scripts/run_tests.py --device aie2p --verbose