Skip to content

Sync the vendored RAPIDS.cmake with rapids-cmake release/25.12 - #466

Open
MaxFreedomPollard wants to merge 1 commit into
NVIDIA:mainfrom
MaxFreedomPollard:fix-rapids-cmake-release-branch
Open

MaxFreedomPollard wants to merge 1 commit into
NVIDIA:mainfrom
MaxFreedomPollard:fix-rapids-cmake-release-branch

Conversation

@MaxFreedomPollard

Copy link
Copy Markdown

Fixes #465.

Configuring with any CMake 3.x currently fails, although the README and cmake_minimum_required say 3.30.4:

CMake Error at build/_deps/rapids-cmake-src/CMakeLists.txt:21 (cmake_minimum_required):
  CMake 4.0 or higher is required.  You are running version 3.31.10

The vendored cmake/RAPIDS.cmake turns the requested version into the branch name branch-25.12. rapids-cmake has moved its release branches to release/XX.YY, and GitHub now redirects branch-25.12 to main: the archive URL answers with a 302 to .../zip/main. So NVBench has been building against rapids-cmake main rather than 25.12, and main requires CMake 4.0.

rapids-cmake's own release/25.12 copy of RAPIDS.cmake already defaults to release/${rapids-cmake-version}. It differs from the vendored file only in that line and in the license header, so this syncs the vendored copy with it. I also updated the download URL in the comment in NVBenchRapidsCMake.cmake, which pointed at the old branch name.

Testing

In nvidia/cuda:12.9.1-devel-ubuntu24.04 with CMake 3.31.10 and -DCMAKE_CUDA_ARCHITECTURES=90 (no GPU):

  • before: configure fails with the error above
  • after: configure succeeds, the fetched rapids-cmake requires 3.30.4, and the nvbench target builds and links

Configuring with CMake 4.3.2 gets past rapids-cmake as well, so newer CMake is not affected.

The vendored copy still defaulted to the branch-XX.YY naming. rapids-cmake
has since moved its release branches to release/XX.YY, and GitHub now
redirects branch-25.12 to main. NVBench therefore fetched rapids-cmake main
instead of 25.12, and main requires CMake 4.0, so configuring with the
documented CMake 3.30.4 or any 3.x failed.

The release/25.12 copy of RAPIDS.cmake defaults to release/XX.YY. It differs
from the vendored one only in that line and in the license header.

Fixes NVIDIA#465
@copy-pr-bot

copy-pr-bot Bot commented Sep 19, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cmake version specified in readme does not work

1 participant