fix(hipcub): Use __execution/env.h only in util_env.hpp #16181
All Vouch review confidence checks passed
Residual risk 0.13 = Change Risk (0.31) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.31 · 110 lines diff across 1 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
Shallow Review Depth
shallow_review_depth
0.289
Diff Size
diff_size
0.282
Real PR Conversation Timeline
1 comments
"Review active on #16181"
general
weight: 0.35
umfranzw
Motivation
This PR aims to avoid an include cycle with libhipcxx's __hipcub.h PSTL shim. It also fixes a bad reference to cudaSuccess in the HIP path.
Technical Details
util_env.hpp only uses __query_or, in env_invoke. That is defined in cuda/std/__execution/env.h, a self-contained header (includes only concepts, type-traits and utility headers; no PSTL, no hipCUB). Including that instead of the <cuda/std/execution> umbrella would break the cycle.
HIPCUB_ASSERT_CUDA_API in config.hpp:307 compares against the CUDA symbol:
_CCCL_ASSERT(__status == cudaSuccess, _MSG);
Change cudaSuccess to hipSuccess.
Test Plan
Running CI with this PR
Test Result
<!-- Briefly summarize test outcomes. -->
Submission Checklist