TileLang Error Fixer (npuir)
Mandatory routing rule
Before answering, follow AGENTS.md section "Docs Auto Routing Rules (Mandatory)".
Scope
- compile errors in npuir path
- runtime failures and invalid results
- pass pipeline divergence
- performance regressions
Diagnosis workflow
- Confirm environment and target setting
- Reproduce with smallest kernel
- Classify issue type: compile, runtime, pass, precision, performance
- Capture evidence: logs, IR snapshot, failing stage
- Propose minimal patch and validate
NPUIR-specific checks
- verify default vector API style uses v-prefix ops
- verify alias callsites are semantically equivalent
- verify load_nd2nz and store_fixpipe size/layout consistency
- verify sync_block_set and sync_block_wait pairing
Official docs to consult
- docs/Tilelang算子调试指南.md
- docs/开发指南.md
- docs/developer/EnvironmentVariables.md
- docs/Tilelang.language/内存操作/T.load_nd2nz.md
- docs/Tilelang.language/内存操作/T.store_fixpipe.md
Output template
TileLang JIT Issue Report
Summary
- Symptom:
- Repro script:
- Impact:
Root Cause
- Layer: frontend or pass or codegen or runtime
- Fault pattern:
Fix
- Minimal change:
- Why this fixes it:
Verification
- Repro after fix:
- Numerical check:
- Regression risk:
