Skip to content

Reasoning for and potential side effects of linking cudart_static? #736

Answered by leofang
BwL1289 asked this question in Q&A
Discussion options

You must be logged in to vote

@BwL1289 In cuda.bindings, the only API that could load libcudart is runtime.getLocalRuntimeVersion(), which is a Python-only API that we added to check the version of the loaded libcudart (if any). Other APIs interact with the driver or static cudart directly.

In fact, the name "CUDA Runtime" is a misnomer. It is not an intelligent run-time system as you might have imagined by name. Nothing fancy is done there. The best way to think about it is "(slightly more user-friendly) C bindings" to driver APIs. The only thing that's fancy here is that it internally loads the driver (libcuda) and fetches the correct symbols based on the loaded driver version in a CUDA-minor-version-compatible mann…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@BwL1289
Comment options

@BwL1289
Comment options

@leofang
Comment options

Answer selected by leofang
@BwL1289
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #735 on June 28, 2025 17:05.