build(native): Use rapids-cmake to configure CUDA architectures for GPU builds #27975
All Vouch review confidence checks passed
Residual risk 0.25 = Change Risk (0.63) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.63 · 274 lines diff across 3 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.336
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.063
Real PR Conversation Timeline
1 comments
"Review active on #27975"
general
weight: 0.35
lga-zurich
Description
Replaces the hardcoded CUDA architecture list with rapids-cmake-driven configuration for cuDF-enabled native builds:
Motivation and Context
The CUDA architecture list for Presto GPU builds was hardcoded in both CMake and the Dockerfile, which is brittle and easily drifts from the architectures Velox/cuDF and the CUDA runtime actually support. rapids-cmake is the upstream RAPIDS mechanism for this; reusing the version/commit already pinned by Velox keeps the toolchains aligned and lets architecture selection follow upstream defaults.
Impact
Build configuration only; no runtime or API changes, and no effect on CPU-only (PRESTO_ENABLE_CUDF=OFF) builds. cuDF-enabled CMake now downloads RAPIDS.cmake at configure time. The compiled CUDA architecture set is now governed by rapids-cmake rather than a fixed list.
Summary by Sourcery
Align GPU native builds and runtime images with RAPIDS and Velox CUDA configuration while adding optional shared compiler caching and required GPU runtime dependencies.
New Features:
Bug Fixes:
Enhancements:
Build:
Deployment: