Add c2h::make_host_buffer overload for call with scalar initializer #12828
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.30) × (1 − Review Confidence (0.43)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.30 · 91 lines diff across 1 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 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
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.271
Real PR Conversation Timeline
1 comments
"Review active on #12828"
general
weight: 0.35
pciolkosz
Add
c2h::make_host_bufferoverload with scalar initializer value to complete fill operation during API call.Add test to verify that
make_host_buffercompletes populating of the buffer with requested value on the calling thread.Description
The behavior of
c2h::make_host_buffer(stream, device, num_items, fill_value)use to depend onconstqualification offill_value.For mutable
fill_valuethe call would queue the fill task, but forconstorconstexprfill_valuethe call would fill on the CPU before returning. I stumbled upon this discrepancy while investigating unexpected test failure in #12802This PR adds an overload for calls with mutable
fill_valueand forwards it toconstsignature.