Skip to content

Add cuda-{dynamic,static} to allow static-linking for cudarc#11

Merged
EricLBuehler merged 3 commits intoEricLBuehler:masterfrom
alvarobartt:master
Feb 3, 2026
Merged

Add cuda-{dynamic,static} to allow static-linking for cudarc#11
EricLBuehler merged 3 commits intoEricLBuehler:masterfrom
alvarobartt:master

Conversation

@alvarobartt
Copy link
Contributor

@alvarobartt alvarobartt commented Feb 3, 2026

Description

This PR adds the features cuda-dynamic and cuda-static so that the dynamic-linking is not enforced when installing cudarc but rather moved under cuda-dynamic with dynamic-linking and cuda-static with static-linking. Additionally, the cuda feature is left as-is, meaning it defaults to cuda-dynamic.

Finally, this PR also bumps the float8 version to 0.6.1; and also excludes consts from typos as otherwise it leads to the CI to fail.

`cudarc` sets the feature `dynamic-linking` by default, but instead this
PR adds the features `cuda-dynamic` and `cuda-static` so that the `cuda`
in `float8` still defaults to `dynamic-linking`, but still offering the
possibility to use `cuda-static` with `static-linking`
Copy link
Owner

@EricLBuehler EricLBuehler left a comment

Choose a reason for hiding this comment

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

👍

cuda-dynamic and cuda-static are already checked to be mutually exclusive:

https://github.com/chelsea0x3b/cudarc/blob/003498c180495f78152241ac893931529e13d1a5/build.rs#L62-L63

@EricLBuehler EricLBuehler merged commit 2b500e5 into EricLBuehler:master Feb 3, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants