Skip to content

Switch RAPIDS to static linking of libcudart by default #235

@bdice

Description

@bdice

Summary

This issue tracks the effort to switch all RAPIDS libraries from dynamic linking (cuda-cudart) to static linking (cuda-cudart_static) of the CUDA runtime by default. This is an implementation of #4.

Motivation

  • Simplifies deployment by embedding CUDA runtime into binaries
  • Eliminates runtime dependency on cuda-cudart conda packages
  • Reduces potential for CUDA version mismatches at runtime

Changes Required Per Repository

  1. CMake: Set CUDA_STATIC_RUNTIME=ON as default in cpp/CMakeLists.txt
  2. Build scripts: Update build.sh default to CUDA_STATIC_RUNTIME=ON
  3. Conda recipes: Remove cuda-cudart from run requirements (keep cuda-cudart-dev in host)

Rollout Order (Bottom-Up by Dependency)

Phase Repositories
1 rmm
2 kvikio, raft, cuvs, cudf
3 cumlprims_mg, cuml, cugraph, ucxx, rapidsmpf
4 cugraph-gnn, cucim, cuopt

Tracking

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions