Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 884 Bytes

File metadata and controls

34 lines (24 loc) · 884 Bytes

RISC-V Tests

This directory contains TileLang RISC-V backend tests.

Test Groups

  • test_riscv_*.py: core backend tests for target parsing, toolchain lookup, TLAdapter pass execution, artifact export, cache reload, and JIT runtime correctness.
  • codegen_ops/: synthetic RISC-V MLIR/codegen tests. See codegen_ops/README.md for the per-file breakdown and dump options.
  • TileKernels/: runtime correctness tests for selected TileKernels kernels. Each test compiles with target="riscv", executes through the RISC-V host adapter, and compares against a CPU/PyTorch reference.

Run

Core backend tests:

python -m pytest -q testing/python/riscv/test_riscv_*.py

Synthetic codegen tests:

python -m pytest -q testing/python/riscv/codegen_ops

TileKernels runtime tests:

python -m pytest -q testing/python/riscv/TileKernels