Skip to content

Default to static linking of libcudart#2890

Merged
rapids-bot[bot] merged 3 commits into
NVIDIA:mainfrom
bdice:static-cudart-default
Dec 11, 2025
Merged

Default to static linking of libcudart#2890
rapids-bot[bot] merged 3 commits into
NVIDIA:mainfrom
bdice:static-cudart-default

Conversation

@bdice

@bdice bdice commented Dec 9, 2025

Copy link
Copy Markdown
Contributor

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/libraft/recipe.yaml: Remove cuda-cudart from run deps
  • conda/recipes/pylibraft/recipe.yaml: Remove cuda-cudart from run deps
  • conda/recipes/raft-dask/recipe.yaml: Remove cuda-cudart from run deps

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

- Remove CUDA_STATIC_RUNTIME option from cpp/CMakeLists.txt
- Always use static CUDA runtime in rapids_cuda_init_runtime
- Update get_cutlass.cmake to always use static cudart
- Remove CUDA_STATIC_RUNTIME from python/libraft/CMakeLists.txt
- Remove CUDA_STATIC_RUNTIME from docs
- Remove cuda-cudart from run requirements in conda recipes
@bdice bdice force-pushed the static-cudart-default branch from 13229d7 to 4c0dfc3 Compare December 9, 2025 18:31
@bdice bdice added breaking Breaking change improvement Improvement / enhancement to an existing function labels Dec 10, 2025
@bdice

bdice commented Dec 11, 2025

Copy link
Copy Markdown
Contributor Author

/merge

@rapids-bot rapids-bot Bot merged commit ef7cd59 into NVIDIA:main Dec 11, 2025
194 of 196 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking Breaking change improvement Improvement / enhancement to an existing function

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants