NVIDIA / NVIDIA/TensorRT-Edge-LLM

Support static CUDA runtime linking

Open
#52 5 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
563
Forks
135
Avg merge
14h 13m
Merged PRs (30d)
1

Description

Detailed description of the requested feature

Add a CMake option (e.g. CUDART_STATIC) to support static linking of the CUDA Runtime library (cudart_static).

Currently, the project defaults to dynamic linking. There is a set(CUDA_USE_STATIC_CUDA_RUNTIME OFF), which is effectively a 'no-op' since the project uses a manual find_library call.
This feature is aligned with the H1 2026 Developer Roadmap, under "Platform Support and Ease of Use".

Timeline

Within a day, once maintainers agree to this request.

Target hardware/use case

All current target hardwares (Edge deployments and 'self-contained' C++ applications).

Benefits aligned with the developer roadmap:

  • Portability: Eliminates LD_LIBRARY_PATH issues and version mismatches on edge devices.
  • Operational Efficiency: Reduces the complexity of Dockerfiles by reducing runtime library dependencies management.
  • Footprint: Bundles core dependencies into a predictable binary.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the manual find_library call for the CUDA Runtime and the existing CUDA_USE_STATIC_CUDA_RUNTIME setting in the CMake configuration. Add the requested CUDART_STATIC option and verify configuration and builds for both static and dynamic runtime linking.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake
Domain
build-system
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.