Add HIP-Basic execution context example #485
All Vouch review confidence checks passed
Residual risk 0.19 = Change Risk (0.48) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.48 · 385 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.356
Shallow Review Depth
shallow_review_depth
0.289
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #485"
general
weight: 0.35
jujiang-del
Motivation
Demonstrate partitioning a device's compute units into separate execution contexts, running a long-running background kernel and a latency-sensitive critical kernel on their own dedicated resources. Register the example in the HIP-Basic CMake build and the top-level README.
Technical Details
Adds a new HIP-Basic/execution_context example (HIP's counterpart to CUDA green contexts).
A stream created on each context with hipExecutionCtxStreamCreate confines its kernels to that context's CUs.
Files added: main.hip, CMakeLists.txt, Makefile, README.md, .gitignore.
Test Plan
speedup rises) as the partition grows, and that the program completes cleanly.
Test Result
Run on a 80-CU device (gfx1100): the critical kernel's runtime dropped from the shared baseline (~230 ms) to ~110 ms on larger partitions, roughly a 2x speedup, with the background-kernel runtime rising as its CU share shrank.
Added/Updated documentation?
Included Visual Studio files?
Submission Checklist