You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[MLIR Opt] Meta-compilation and auto-tuning via the MLIR transform dialect #668
Build an auto-tuning engine using the MLIR transform dialect and hardware PMU feedback.
Problem & Goal
Hardcoded compiler heuristics are brittle across differing CPU microarchitectures.
Using the MLIR transform dialect separates algorithmic definition from optimization schedules, allowing guided search over tile sizes, unroll factors, and vector strategies driven by hardware PMU counters.
Key Deliverables
Generate separate MLIR transform scripts for tiling and vectorization strategies.
Incremental scaffold merged in #881: autotune_transform plus a microbenchmark and a report of what remains. Keeping this open for the full-pipeline integration and transform lowering documented in docs/project/MLIR_AUTOTUNING.md.
Merged PR #1209 adds target metadata and strategy selection to MLIR tuning schedules, with CPU/GPU/NVPTX/AMDGPU target flags and coverage. The remaining issue scope is full transform-dialect integration with measurement-driven search and cost modeling.
Opened #1218 with a tested Flow-native vector transform strategy. mlir_tune --strategy=vector emits a transform.structured.vectorize schedule and records flow.tune_strategy = "vector"; invalid strategies receive a diagnostic. The existing tile path remains the default.
PR #1312 merged at 1a907a6. The transform tuning benchmark now checks generated matmul results at both matrix boundaries before accepting a measured candidate.
PR #1319 merged at f982fc0. MLIR tuner options now reject bare flags that would otherwise silently retain defaults. Native tuner coverage passes 22/22.
Activity
mlir: transform-dialect auto-tuning scaffold and benchmark (#668) (#881)
godofecht commentedon Sep 11, 2026
Incremental scaffold merged in #881:
autotune_transformplus a microbenchmark and a report of what remains. Keeping this open for the full-pipeline integration and transform lowering documented in docs/project/MLIR_AUTOTUNING.md.godofecht commentedon Oct 2, 2026
Merged PR #1209 adds target metadata and strategy selection to MLIR tuning schedules, with CPU/GPU/NVPTX/AMDGPU target flags and coverage. The remaining issue scope is full transform-dialect integration with measurement-driven search and cost modeling.
godofecht commentedon Oct 2, 2026
Opened #1218 with a tested Flow-native vector transform strategy.
mlir_tune --strategy=vectoremits atransform.structured.vectorizeschedule and recordsflow.tune_strategy = "vector"; invalid strategies receive a diagnostic. The existing tile path remains the default.godofecht commentedon Oct 2, 2026
PR #1218 is merged at 94a69dd. The Flow tuner now supports validated tile and vector transform strategies.
godofecht commentedon Oct 3, 2026
PR #1305 merged at 5d3b57a. Tuning benchmark inputs now reject wrapped integer values instead of accepting overflowed candidates or repetition counts.
godofecht commentedon Oct 3, 2026
PR #1312 merged at 1a907a6. The transform tuning benchmark now checks generated matmul results at both matrix boundaries before accepting a measured candidate.
godofecht commentedon Oct 3, 2026
PR #1319 merged at f982fc0. MLIR tuner options now reject bare flags that would otherwise silently retain defaults. Native tuner coverage passes 22/22.
Merge origin/main into fix-668-16431187639047456379