Repository navigation
Require CMake 4.0 - #22492
Require CMake 4.0#22492
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughThis pull request systematically updates the minimum CMake version requirement from 3.30.4 to 4.0 across the entire RAPIDS cuDF repository. The change propagates through the build system entry point, dependency definitions, all C++ and Python projects, Java native builds, and conda package specifications, with SPDX copyright year ranges updated to 2026 where present. ChangesCMake minimum version 4.0 requirement update
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Suggested reviewers
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
mythrocks
left a comment
There was a problem hiding this comment.
LGTM, barring resolution of conflicts.
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
cpp/cmake/Modules/FindCUDAToolkit.cmake (1)
1028-1037:⚠️ Potential issue | 🟠 Major | ⚡ Quick winHandle
nvcc --versionfailures before relying on parsed output.
_nvcc_version_resultis captured but never used. Ifnvcc --versionexits non-zero,CUDAToolkit_VERSIONcan remain unset and version-gated targets are skipped silently.Suggested fix
- execute_process(COMMAND ${CUDAToolkit_NVCC_EXECUTABLE} "--version" - OUTPUT_VARIABLE NVCC_OUT - RESULT_VARIABLE _nvcc_version_result) - if(NVCC_OUT MATCHES [=[ V([0-9]+)\.([0-9]+)\.([0-9]+)]=]) + execute_process(COMMAND ${CUDAToolkit_NVCC_EXECUTABLE} "--version" + OUTPUT_VARIABLE NVCC_OUT + ERROR_VARIABLE NVCC_ERR + RESULT_VARIABLE _nvcc_version_result) + if(_nvcc_version_result EQUAL 0 AND NVCC_OUT MATCHES [=[ V([0-9]+)\.([0-9]+)\.([0-9]+)]=]) set(CUDAToolkit_VERSION_MAJOR "${CMAKE_MATCH_1}") set(CUDAToolkit_VERSION_MINOR "${CMAKE_MATCH_2}") set(CUDAToolkit_VERSION_PATCH "${CMAKE_MATCH_3}") set(CUDAToolkit_VERSION "${CMAKE_MATCH_1}.${CMAKE_MATCH_2}.${CMAKE_MATCH_3}") + elseif(NOT _nvcc_version_result EQUAL 0) + _CUDAToolkit_find_version_file(version_file) + _CUDAToolkit_parse_version_file("${version_file}") + unset(version_file) endif() unset(NVCC_OUT) + unset(NVCC_ERR) + unset(_nvcc_version_result)🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@cpp/cmake/Modules/FindCUDAToolkit.cmake` around lines 1028 - 1037, The nvcc version probe runs nvcc --version into NVCC_OUT but ignores the RESULT_VARIABLE _nvcc_version_result, so when nvcc fails the matcher may be skipped silently; update the probe around CUDAToolkit_NVCC_EXECUTABLE to first test that _nvcc_version_result equals 0 (successful exit) before attempting the regex match on NVCC_OUT, and if the result is non‑zero handle it by unsetting/clearing CUDAToolkit_VERSION variables (CUDAToolkit_VERSION_MAJOR, CUDAToolkit_VERSION_MINOR, CUDAToolkit_VERSION_PATCH, CUDAToolkit_VERSION) or emit a diagnostic so version‑gated targets don’t silently proceed; ensure NVCC_OUT is still unset at the end.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Outside diff comments:
In `@cpp/cmake/Modules/FindCUDAToolkit.cmake`:
- Around line 1028-1037: The nvcc version probe runs nvcc --version into
NVCC_OUT but ignores the RESULT_VARIABLE _nvcc_version_result, so when nvcc
fails the matcher may be skipped silently; update the probe around
CUDAToolkit_NVCC_EXECUTABLE to first test that _nvcc_version_result equals 0
(successful exit) before attempting the regex match on NVCC_OUT, and if the
result is non‑zero handle it by unsetting/clearing CUDAToolkit_VERSION variables
(CUDAToolkit_VERSION_MAJOR, CUDAToolkit_VERSION_MINOR,
CUDAToolkit_VERSION_PATCH, CUDAToolkit_VERSION) or emit a diagnostic so
version‑gated targets don’t silently proceed; ensure NVCC_OUT is still unset at
the end.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: e90c69c0-5966-4fde-9daa-694224e8f435
📒 Files selected for processing (1)
cpp/cmake/Modules/FindCUDAToolkit.cmake
|
This stands a chance of breaking the |
We should merge that before merging this, since we're trying to go top-to-bottom by dependency order. |
Working on it... |
Fixes #4556. This commit updates CMakeLists.txt to use CMake 4.0+, and updates the Dockerfile used in the build. This is in line with the changes in cuDF, in NVIDIA/cudf#22492. Signed-off-by: MithunR <[email protected]>
|
Done |
|
Ah, it appears that the |
igorpeshansky
left a comment
There was a problem hiding this comment.
Seems fine, but I don't have enough context to know what else is missing…
|
We're migrating from top to bottom by dependency order. There are several other repos that depend on cudf that have to be migrated before this one can be merged. |
|
/merge |
|
@KyleFromNVIDIA will this change be backported into Currently we have failures on both filed #22540, also cc @mythrocks |
To fix build cuDF cmake version error ``` [INFO] [exec] CMake Error at /home/jenkins/agent/workspace/jenkins-examples-udf-examples-native-597/examples/UDF-Examples/RAPIDS-accelerated-UDFs/target/cpp-build/_deps/cudf-src/cpp/CMakeLists.txt:8 (cmake_minimum_required): [INFO] [exec] CMake 4.0 or higher is required. You are running version 3.30.4 ``` Refer to NVIDIA/cudf-spark-jni#4557 This commit updates CMakeLists.txt to use CMake 4.0+, and updates the Dockerfile used in the build. This is in line with the changes in cuDF, in NVIDIA/cudf#22492. Signed-off-by: Tim Liu <[email protected]>
NVIDIA/cudf#22492 bumped cudf's required CMake to 4.0. Bump CMake to 4.3.2 in the container scripts.
Issue: rapidsai/build-planning#277