Repository navigation
AIRUNTIME-2821 - fix two misuses of __builtin_amdgcn_is_invocable() - #13281
Conversation
❌ PR Check — Action Required
📖 Need help? See the Policy FAQ for details on every check and how to fix failures. |
|
🚫 Please fix the failed policies before requesting reviews. The following policy checks failed:
The |
There was a problem hiding this comment.
🟢 Approval recommended
The functional fix is sound; only minor formatting corrections remain.
1 open finding
What changed in this PR
Fixes architecture-specific HIPRTC compilation failures by correctly guarding AMDGCN intrinsics.
Changes:
- Guards
mbcntand shared-rank intrinsics with invocability checks. - Preserves trap-based fallbacks when intrinsics are unavailable.
| File | Description |
|---|---|
projects/clr/hipamd/include/hip/amd_detail/hip_cooperative_groups_helper.h |
Corrects intrinsic guards and fallback control flow. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
🤖 AI-assisted pre-review (for @mangupta) Re-reviewed the updated head ( |
1309a43 to
cfced37
Compare
TheRock Submodule Bump ActivityNewest first
|

Motivation
The test Unit_hiprtc_spirv_compilation fails in some architectures with:
Technical Details
The intrinsics must be guarded using
__builtin_is_invocable()but instead there are two instances where the code tries to exit early if an intrinsic is invocable via__builtin_trap(), as opposed to be guarded withif()Issue Tracking
AIRUNTIME-2821
Test Plan
Re-run with:
Test Result
Both test passed OK now. Before
Unit_hiprtc_spirv_compilationwas failing for me.Submission Checklist