Skill
jit-debug
Priority: P0 (Critical — JIT failures block all kernel execution)
Motivation
AITER's JIT system compiles HIP/Triton kernels on first use. Failures are common during development: missing modules, hipcc version mismatches, lock contention on multi-GPU nodes, and the SystemExit vs RuntimeError handling bug (where SystemExit in JIT crashes the entire process instead of falling back gracefully). Diagnosing these requires reading scattered logs, checking environment variables, and understanding the JIT cache/lock mechanism. A skill codifies this into a repeatable workflow.
What This Skill Should Do
- Collect diagnostics: Gather hipcc version, ROCm version, GPU arch (gfx942/gfx950), JIT cache location, and environment variables (AITER_JIT_DIR, HIP_VISIBLE_DEVICES)
- Analyze error logs: Parse JIT compilation errors, classify into categories (missing module, compilation error, lock timeout, permission error, architecture mismatch)
- Check common issues: Verify hipcc is on PATH, check for stale .lock files in JIT cache, detect SystemExit vs RuntimeError handling in
jit/core.py
- Suggest fixes: Provide targeted fix recommendations based on error category (clear cache, update hipcc, fix error handling, etc.)
- Validate fix: Re-run the failing JIT compilation to confirm the fix works
Acceptance Criteria
Skill
jit-debugPriority: P0 (Critical — JIT failures block all kernel execution)
Motivation
AITER's JIT system compiles HIP/Triton kernels on first use. Failures are common during development: missing modules, hipcc version mismatches, lock contention on multi-GPU nodes, and the SystemExit vs RuntimeError handling bug (where
SystemExitin JIT crashes the entire process instead of falling back gracefully). Diagnosing these requires reading scattered logs, checking environment variables, and understanding the JIT cache/lock mechanism. A skill codifies this into a repeatable workflow.What This Skill Should Do
jit/core.pyAcceptance Criteria