Modernize cuda.ml for CUDA 13.3 and RAPIDS cuML 26.6 - #211
Draft
t-kalinowski wants to merge 19 commits into
Draft
Conversation
# Conflicts: # .Rbuildignore # DESCRIPTION # R/package.R # man/cuda.ml-package.Rd # tests/testthat/helper-initialize.R # tools/config/configure.R
dfalbel
reviewed
Jul 23, 2026
| && rm -rf /tmp/* /root/.cache | ||
|
|
||
| # Install cuda.ml with tests | ||
| RUN R CMD INSTALL --install-tests /build |
Member
There was a problem hiding this comment.
It's important to keep installing the package in the docker image to avoid using the expensive GPU runner for compiling the C++ source.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Modernizes cuda.ml for CUDA 13.3 and RAPIDS cuML 26.6 while retaining version-guarded support for the existing cuML 21.x build paths.
The installation flow can now bootstrap RAPIDS cuML from pip wheels when a compatible GPU and CUDA toolkit are available. CRAN and non-GPU environments continue to receive a stub-only build with clearer diagnostics.
Why
The native integration assumed CUDA 11, cuML 21 APIs, the older Treelite/FIL interface, and a manually provisioned RAPIDS prefix. Current RAPIDS releases changed API signatures, resource handling, packaging layouts, and several model structures.
These differences caused compilation failures, incorrect host/device transfers, ignored normalization, invalid FIL probability output, stale incremental builds, and GPU CI packages being configured without GPU access.
Public-facing changes
uvor Python/pip for CUDA 12 and 13.CUDA_HOME,CUML_PREFIX,CUML_BOOTSTRAP, and related configuration options.normalize_input = TRUEbehavior for lasso, elastic net, and ridge models on modern cuML.max_indexpostprocessing.n_bitsand updates behavior for modern KNN implementations.Internal changes
Validation
All GitHub Actions checks pass.