What problem does it solve?
This Skill provides an end-to-end workflow to locate, diagnose, and repair Pass-level errors and severe runtime crashes (Core Dump / Segmentation Fault) in TileLang-Ascend, bridging GDB backtraces, IR inspection, generated target code analysis, AOT verification, and C++ Pass fixes.
Core Features & Use Cases
- Environment & build validation: verify TL_ROOT, PYTHONPATH, ASCEND_HOME_PATH, LD_LIBRARY_PATH and that C++ sources are freshly built before debugging.
- Crash and backtrace analysis: attach GDB to Python processes to capture C++ stack traces and map failures to specific Pass implementations.
- IR and target code inspection: dump and inspect intermediate IR after lowering and extract generated kernel C++ code for manual review.
- AOT verification workflow: export operator C++ from TileLang, compile AOT .so, and run Ctypes-based tests to validate behavioral and precision fixes before changing Pass code.
- C++ Pass repair and validation: propose guarded code edits, generate diffs, run make, re-run reproducer, compare IR/target diffs, and rollback if necessary.
- Use Case: debugging a segmentation fault caused by a pipeline pass that miscomputes loop extents and validating the fix via AOT-compiled kernel tests.
Quick Start
Provide the failing script and build artifacts and ask the skill to run environment checks, collect GDB backtrace and IR dump, and propose a C++ Pass fix with AOT verification.