← Back to Pull requests

Require CMake 4.3 #3218

Merged
robertmaynard merged 17 files (34 lines) on Nov 16, 2026 16:43 UTC
View on GitHub
robertmaynard robertmaynard commented on Nov 16, 2026 15:14 UTC
Author

Raise the minimum required CMake version to 4.3.

  • Bump cmake_minimum_required() to 4.3 so that the NEW behavior of every policy introduced in CMake 4.1 through 4.3 (CMP0186-CMP0210) is enabled.

  • Bump the cmake requirement in dependencies.yaml, the generated conda environment files, conda recipes (conda_build_config.yaml) and pyproject.toml build requirements.

  • Update documentation, CI images and presets that mention the minimum.
  • Before this PR is merged, the PRs for the following projects should already be merged, or at least have passing CI:

  • cuopt: https://github.com/NVIDIA/cuopt/pull/2324 (open)

  • cugraph-gnn: https://github.com/rapidsai/cugraph-gnn/pull/570 (open)

  • cugraph: https://github.com/rapidsai/cugraph/pull/5738 (open)

  • cuml: https://github.com/NVIDIA/cuml/pull/8903 (open)

  • nvforest: https://github.com/rapidsai/nvforest/pull/283 (merged)

  • cuvs: https://github.com/NVIDIA/cuvs/pull/3068 (open)
  • Contributes to rapidsai/build-planning#349

    Diff: 34 lines (+17 / -17) across 17 files Reviewer: cryos Review duration: 88m
    All Vouch review confidence checks passed
    Residual risk 0.16 = Change Risk (0.53) × (1 − Review Confidence (0.70)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.53 · 34 lines diff across 17 files
    0.53
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.54 · 2 substantive comment(s)
    0.54
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    70%
    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.213
    Mass File Touch mass_file_touch
    0.080
    Real PR Conversation Timeline
    4 items
    coderabbitai[bot] coderabbitai[bot] commented on Nov 16, 2026 15:18 UTC
    Bot

    <!-- coderabbit-ai-generated:v1 -->

    <!-- This is an auto-generated comment: summarize by coderabbit.ai -->
    <!-- review_stack_entry_start -->

    <a href="https://app.coderabbit.ai/change-stack/NVIDIA/raft/pull/3218?scope=ghh_OusAJGA4HG8ljoOV0wJvVx8NmnZIjc2DdjmxOu0xZWA&amp;cs_source=review_comment"><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-stack-buttons-v1/explain-change-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-stack-buttons-v1/explain-change.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-stack-buttons-v1/explain-change.svg" alt="Explain Change →" height="32"></picture></a>

    <!-- review_stack_entry_end -->
    <!-- recent_review_status_start -->

    No actionable comments were generated in the recent review.

    <!-- recent_review_status_end -->
    <!-- walkthrough_start -->

    <details>
    <summary><strong>Summary</strong></summary>
    <dl>
    <dd>
    <br>

    <!-- This is an auto-generated comment: release notes by coderabbit.ai -->

    Summary by CodeRabbit

    Build Requirements
    Building from source and installing the Python packages now require CMake 4.3 or newer. The supported version range remains below 4.5.

    <!-- end of auto-generated comment: release notes by coderabbit.ai -->
    The minimum required CMake version changes from 4.0 to 4.3 across CMake checks, shared build dependencies, Conda environments, Python package build requirements, and source-build documentation. Existing upper bounds below 4.5 remain unchanged.

    Changes: CMake minimum version

    |Layer / File(s)|Summary|
    |:---|:---|
    |CMake version checks <br> cmake/RAPIDS.cmake, cpp/CMakeLists.txt, python//CMakeLists.txt|CMake configuration now requires version 4.3. The existing fatal-error behavior for versions below the minimum remains.|
    |Build requirements and documentation <br> dependencies.yaml, conda/environments/
    .yaml, conda/recipes//conda_build_config.yaml, python//pyproject.toml, docs/source/build.md|Build requirements now set a 4.3 minimum while retaining the <4.5 upper bound. The source-build documentation states the new minimum.|

    <!-- change_assessment_start -->
    Estimated code review effort: 2 (Simple) | ~8 minutes

    <!-- change_assessment_commit:"89344b49db1f2aaa72a6c5019e5a2fe2cbda360d" -->
    <!-- change_assessment_priority:{"version":1,"urgency":"p2","manual":false} -->
    Change: Other
    <!-- change_assessment_end -->

    Possibly related PRs

  • NVIDIA/raft#3217: Updates CMake constraints in the same Python build-requirement files while resolving a release-branch merge conflict.

  • NVIDIA/raft#3214: Constrains CMake to versions below 4.5 in several of the same build requirement sources.
  • Suggested reviewers: bdice, vyasr

    </dd>
    </dl>
    </details>

    <!-- walkthrough_end -->
    <details>
    <summary><strong>Merge Risk:</strong> <strong><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/risk-unassessed-16.svg" width="16" height="16" align="absmiddle" alt=""></picture> Minimal</strong> · up to <code>89344</code></summary>
    <dl>
    <dd>
    <br>

    <!-- final_review_risk_start -->
    <!-- final_review_risk_label
    Merge Risk: ⚪ Minimal · up to 89344
    -->
    <!-- final_review_risk_coverage:{"sourceCommitId":"89344b49db1f2aaa72a6c5019e5a2fe2cbda360d","coveredCommitId":"89344b49db1f2aaa72a6c5019e5a2fe2cbda360d","kind":"reviewed"} -->

    This raises the minimum CMake version for building from source to 4.3 and keeps all build requirements and docs consistent. Builds on older CMake will now fail at configure time, which is the intended behavior. No merge-blocking risk was found.
    <!-- final_review_risk_end -->

    </dd>
    </dl>
    </details>

    <details>
    <summary><strong>Architecture risk:</strong> <strong><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/risk-low-16.svg" width="16" height="16" align="absmiddle" alt=""></picture> Low</strong> · up to <code>89344</code></summary>
    <dl>
    <dd>
    <br>

    <!-- architecture_review_start -->
    <!-- architecture_review_label

    Architecture Summary

    Architecture risk: 🔵 Low · up to 89344
    -->

    The change affects 6 systems.

    Changed systems: conda, python, cmake, cpp, dependencies.yaml, docs

    Architecture concerns
    No architecture-level concerns identified.

    <details>
    <summary><strong>Review details</strong></summary>
    <dl>
    <dd>
    <br>

    Systems and components

  • _observed_ — conda (service) was modified; 7 changed files map to changed impact.

  • _observed_ — python (service) was modified; 6 changed files map to changed impact.

  • _observed_ — cmake (service) was modified; 1 changed file maps to changed impact.

  • _observed_ — cpp (service) was modified; 1 changed file maps to changed impact.
  • Before / after behavior

  • _observed_ — Modified behavior in cmake/RAPIDS.cmake: The minimum required CMake version changes from 4.0 to 4.3; configuration fails if the running CMake version does not satisfy the new minimum.

  • _observed_ — Modified behavior in conda/environments/all_cuda-129_arch-aarch64.yaml: The minimum CMake version changes from 4.0 to 4.3; the <4.5 upper bound is unchanged.

  • _observed_ — Modified behavior in conda/environments/all_cuda-129_arch-x86_64.yaml: The CMake requirement changes from >=4.0,<4.5 to >=4.3,<4.5.

  • _observed_ — Modified behavior in conda/environments/all_cuda-134_arch-aarch64.yaml: The CMake minimum version changes from 4.0 to 4.3; the maximum remains below 4.5.
  • </dd>
    </dl>
    </details>
    <!-- architecture_review_end -->

    </dd>
    </dl>
    </details>
    <!-- pre_merge_checks_walkthrough_start -->

    <details>
    <summary><strong>Pre-merge checks: <sup><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-counter-passed-14-v2.svg" width="14" height="14" align="middle" alt="Passed" title="Passed"></picture></sup> 4</strong></summary>
    <dl>
    <dd>
    <br>

    | Check name | Status | Explanation |
    | :------------------------ | :--------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
    | Title check | !Passed | The title "Require CMake 4.3" matches the main change. The PR raises the minimum required CMake version from 4.0 to 4.3 across cmake_minimum_required() calls, dependency files, conda environments, rec… |
    | Description check | !Passed | The description states the goal of raising the minimum CMake version to 4.3 and lists the affected areas: cmake_minimum_required(), dependencies.yaml, conda environment files, conda recipes, pyproject… |
    | Linked Issues check | !Passed | Check skipped because no linked issues were found for this pull request. |
    | Out of Scope Changes check | !Passed | Check skipped because no linked issues were found for this pull request. |

    <details>
    <summary><strong>Full details: Title check</strong></summary>
    <dl>
    <dd>
    <br>

    Explanation

    The title "Require CMake 4.3" matches the main change. The PR raises the minimum required CMake version from 4.0 to 4.3 across cmake_minimum_required() calls, dependency files, conda environments, recipes, pyproject.toml files, and docs. The title is short, specific, and states the primary change.

    </dd>
    </dl>
    </details>

    <details>
    <summary><strong>Full details: Description check</strong></summary>
    <dl>
    <dd>
    <br>

    Explanation

    The description states the goal of raising the minimum CMake version to 4.3 and lists the affected areas: cmake_minimum_required(), dependencies.yaml, conda environment files, conda recipes, pyproject.toml, docs, CI images, and presets. It also lists the dependent project PRs. This matches the changeset.

    </dd>
    </dl>
    </details>

    </dd>
    </dl>
    </details>

    <!-- pre_merge_checks_walkthrough_end -->
    <!-- finishing_touch_checkbox_start -->

    <details>
    <summary><strong>Finishing Touches</strong></summary>
    <dl>
    <dd>
    <br>

    <details open>
    <summary><strong>Generate unit tests (beta)</strong></summary>
    <dl>
    <dd>
    <br>

  • <!-- {"checkboxId": "f47ac10b-58cc-4372-a567-0e02b2c3d479", "radioGroupId": "utg-output-choice-group-unknown_comment_id"} --> Create a new PR
  • </dd>
    </dl>
    </details>

    </dd>
    </dl>
    </details>

    <!-- finishing_touch_checkbox_end -->

    <!-- autopilot:start -->

  • <!-- {"checkboxId":"2708ad07-9f24-4260-9c11-7dc76a49f2e3"} --> <strong title="Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts">Autofix</strong> · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

  • <!-- autopilot:end -->
    <!-- recent_review_start -->

    <h6>
    <details>
    <summary><strong><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/info.svg" width="12" height="12" align="absmiddle" alt=""></picture> Recent review info</strong></summary>
    <dl>
    <dd>
    <br>

    <!-- review_info_content -->
    <details>
    <summary><strong><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/cog-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/cog.svg" width="16" height="16" align="absmiddle" alt=""></picture> Run configuration</strong></summary>
    <dl>
    <dd>
    <br>

  • Source mode: Auto

  • Repository: [NVIDIA/raft](<https://github.com/NVIDIA/raft>)

  • Branch: [main](<https://github.com/NVIDIA/raft/tree/main>)

  • File: [.coderabbit.yaml](<https://github.com/NVIDIA/raft/blob/2eca9a847b0f38ff52aad24e72a7bc5ddbd52201/.coderabbit.yaml>)

  • Commit: [2eca9a8](<https://github.com/NVIDIA/raft/commit/2eca9a847b0f38ff52aad24e72a7bc5ddbd52201>)

  • Layers: Repository YAML

  • Review profile: CHILL

  • Plan: Enterprise

  • Run ID: 75ad28af-5fcf-499b-9116-953ccc90ab73
  • </dd>
    </dl>
    </details>

    <details>
    <summary><strong><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/git-commit-horizontal-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/git-commit-horizontal.svg" width="16" height="16" align="absmiddle" alt=""></picture> Commits</strong></summary>
    <dl>
    <dd>
    <br>

    Reviewing files that changed from the base of the PR and between 2eca9a847b0f38ff52aad24e72a7bc5ddbd52201 and 89344b49db1f2aaa72a6c5019e5a2fe2cbda360d.

    </dd>
    </dl>
    </details>

    <details>
    <summary><strong><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/file-plus-corner-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/file-plus-corner.svg" width="16" height="16" align="absmiddle" alt=""></picture> Files selected for processing: 17</strong></summary>
    <dl>
    <dd>
    <br>

    cmake/RAPIDS.cmake
    conda/environments/all_cuda-129_arch-aarch64.yaml
    conda/environments/all_cuda-129_arch-x86_64.yaml
    conda/environments/all_cuda-134_arch-aarch64.yaml
    conda/environments/all_cuda-134_arch-x86_64.yaml
    conda/recipes/libraft/conda_build_config.yaml
    conda/recipes/pylibraft/conda_build_config.yaml
    conda/recipes/raft-dask/conda_build_config.yaml
    cpp/CMakeLists.txt
    dependencies.yaml
    docs/source/build.md
    python/libraft/CMakeLists.txt
    python/libraft/pyproject.toml
    python/pylibraft/CMakeLists.txt
    python/pylibraft/pyproject.toml
    python/raft-dask/CMakeLists.txt

  • python/raft-dask/pyproject.toml
  • </dd>
    </dl>
    </details>

    Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 8 remain after this review.

    </dd>
    </dl>
    </details>
    </h6>

    <!-- recent_review_end -->

    cryos cryos approved these changes on Nov 16, 2026 15:59 UTC
    Approved Reviewer

    Approved these changes.

    robertmaynard robertmaynard commented on Nov 16, 2026 16:43 UTC
    Author

    /merge

    Reviewers
    Assignees
    robertmaynard robertmaynard
    Labels
    risk: low confidence: 70.1% reviewed
    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: 52.8% (MEDIUM) · Higher = larger blast radius
    52.8%
    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: 70.1% · Lower = rushed or shallow review
    70.1%
    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: 15.8% · Safe to merge
    15.8%
    Repository