Repository navigation
docs(rocke): say what a taken trap does on each platform - #14866
Conversation
The trap docs said a taken trap makes the launch report an error or abort the process, and that it always lowers to s_trap 2. Neither is true everywhere. On Linux (ROCr) the queue reports an error and the process aborts; on Windows the HIP runtime never turns the trap into an error and the launch never returns; under a debugger the wave stops at the trap. On gfx11 the backend emits its simulated trap: s_trap 2, then s_sendmsg, then an s_sethalt loop. Correct the IRBuilder.trap docstring, the op vocabulary entry, the C builder's header comment and the trap test's module docstring, and say that a check the process must survive belongs on the host. Co-Authored-By: Claude <noreply@anthropic.com>
✅ All Checks Passed — Ready for Review
📖 Need help? See the Policy FAQ for details on every check and how to fix failures. |
|
🎉 All checks passed! This PR is ready for review. |
CongMa13
left a comment
There was a problem hiding this comment.
No new P0 or P1 issues were identified during this review. The changes are approved.
|
Automated review: Model - qwen3.6:35b-a3b-coding-mtp-q4_K_M, effort: max PR #14866 — say what a taken trap does on each platform (cgmillette, AICK-2906) — 🟡 First-round: gfx11 overstated; CI running
Utility: 🟢 Positive — corrects per-platform trap docs; comments only, IR unchanged. Legend: 🔴 blocking · 🟠 should-fix · 🟡 minor nit · 🟢 info/good · ⚪ retracted First-round review: first pass by a local qwen3.6 model, verified by the orchestrator (Claude Opus 5.5). Checks: merge with develop, build + ctest, byte identity, goldens, comment-only token diff, test_trap, trap ISA per target, CI at head. Flags whether a closer look is needed; not an approval or rejection. |
TheRock Submodule Bump ActivityNewest first
|
Motivation
The docs for
trap()said a taken trap makes the launch report an error or abort the process, and that it lowers tos_trap 2. Neither holds everywhere, so a kernel author reading them could expect a recoverable error where there is none.Technical Details
Docs and comments only; no emitted IR or HIP source changes.
s_trap 2, thens_sendmsg, then ans_sethaltloop. Other targets gets_trap 2.Updated: the
IRBuilder.trapdocstring, thetile.trapentry indsl_docs/reference/op_vocabulary.md, therocke_b_trapcomment incpp/include/rocke/ir.h, and the module docstring oftests/core/test_trap.py. Each now says that a check the process must survive belongs on the host, before the launch.Test Plan
tools/check_byte_identity.py(default flavor plus the gfx1250 llvm23 pass).tests/core/test_trap.pywith both engines.llvm.trapkernel withllcfor gfx90a, gfx942, gfx950, gfx1100 and gfx1201.Test Result
All green; byte identity GREEN for every family.
Submission Checklist
ISSUE ID : AICK-2906
🤖 Generated with Claude Code