Skip to content

Backport "Default to static linking of libcudart"#1918

Merged
rapids-bot[bot] merged 1 commit intorapidsai:release/26.04from
KyleFromNVIDIA:backport-cudart-static
Mar 16, 2026
Merged

Backport "Default to static linking of libcudart"#1918
rapids-bot[bot] merged 1 commit intorapidsai:release/26.04from
KyleFromNVIDIA:backport-cudart-static

Conversation

@KyleFromNVIDIA
Copy link
Member

Backport #1627

## Summary
- Enable static linking of libcudart by default (`CUDA_STATIC_RUNTIME=ON`)
- Remove `cuda-cudart` from conda recipe run requirements (no longer needed when statically linked)

This is part of a RAPIDS-wide effort to switch to static CUDA runtime linking. See rapidsai/build-planning#235 for tracking.

## Changes
- `cpp/CMakeLists.txt`: Change `CUDA_STATIC_RUNTIME` default from OFF to ON
- `conda/recipes/cuvs/recipe.yaml`: Remove `cuda-cudart` from run deps
- `conda/recipes/libcuvs/recipe.yaml`: Remove `cuda-cudart` from run deps (4 outputs)

Note: Python builds already use `CUDA_STATIC_RUNTIME=ON` (set in `python/libcuvs/CMakeLists.txt`).

Authors:
  - Bradley Dice (https://github.com/bdice)
  - Kyle Edwards (https://github.com/KyleFromNVIDIA)

Approvers:
  - Kyle Edwards (https://github.com/KyleFromNVIDIA)
  - Robert Maynard (https://github.com/robertmaynard)
  - Ben Frederickson (https://github.com/benfred)

URL: rapidsai#1627
@KyleFromNVIDIA KyleFromNVIDIA requested review from a team as code owners March 16, 2026 16:35
@KyleFromNVIDIA KyleFromNVIDIA requested a review from bdice March 16, 2026 16:35
@KyleFromNVIDIA KyleFromNVIDIA added breaking Introduces a breaking change improvement Improves an existing functionality labels Mar 16, 2026
@KyleFromNVIDIA KyleFromNVIDIA changed the title Default to static linking of libcudart (#1627) Backport "Default to static linking of libcudart" Mar 16, 2026
Copy link
Member

@benfred benfred left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 for rust/docs

@KyleFromNVIDIA
Copy link
Member Author

/merge

@rapids-bot rapids-bot bot merged commit 41a661f into rapidsai:release/26.04 Mar 16, 2026
150 of 153 checks passed
KyleFromNVIDIA added a commit to KyleFromNVIDIA/cuvs that referenced this pull request Mar 16, 2026
Since rapidsai#1909, we've been able to use
older versions of the CUDA driver, since we no longer rely on
`cudaLibraryEnumerateKernels()`. Since
rapidsai#1918, we've been using static
cudart, which allows us to run on platforms with versions of CUDA older
than 12.8 installed, since the runtime library API is now bundled with
cuvs. Always build with JIT+LTO so that we can get the full compile time
and binary size benefits in CUDA 12 too.
KyleFromNVIDIA added a commit to KyleFromNVIDIA/cuvs that referenced this pull request Mar 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking Introduces a breaking change improvement Improves an existing functionality

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants