← Back to Pull requests

build(native): Use rapids-cmake to configure CUDA architectures for GPU builds #27975

Closed
unknown closed this pull request without merging on Nov 10, 2026 07:37 UTC
View on GitHub
unknown unknown commented on Jun 11, 2026 14:36 UTC
Author

Description

Replaces the hardcoded CUDA architecture list with rapids-cmake-driven configuration for cuDF-enabled native builds:

  • Integrate rapids-cmake when PRESTO_ENABLE_CUDF is on: download RAPIDS.cmake and call rapids_cuda_init_architectures(), reusing the rapids-cmake version and commit pinned by Velox's cudf.cmake so Presto and Velox stay in sync.

  • Drop the hardcoded default CUDA_ARCHITECTURES in the runtime Dockerfile, letting rapids-cmake detect and select the architectures.
  • 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.

    == NO RELEASE NOTE ==
    

    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:

  • Configure CUDA architectures for cuDF-enabled native builds through the Velox-pinned rapids-cmake integration.

  • Add optional RAPIDS sccache support with S3-backed compiler caching for native image builds.

  • Install CUDA runtime, RDMA, and UCX libraries into CentOS runtime images as needed.
  • Bug Fixes:

  • Allow runtime image dependency checks to tolerate the expected unresolved libcuda driver dependency.
  • Enhancements:

  • Remove the fixed CUDA architecture default and align CUDA/toolchain configuration with upstream RAPIDS and Velox settings.
  • Build:

  • Update native build images with newer CUDA defaults and optional UCX configuration.
  • Deployment:

  • Extend runtime container images to package and configure CUDA, RDMA, and UCX runtime dependencies.
  • Diff: 274 lines (+205 / -69) across 3 files Reviewer: lga-zurich Review duration: 218460m
    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
    0.63
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed sensitive_module
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 62.7% (MEDIUM) · Higher = larger blast radius
    62.7%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 24.8% · Safe to merge
    24.8%