Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can I change to statically link even when building with CUDA? #668

Closed
vlovich opened this issue Feb 21, 2025 · 2 comments
Closed

Can I change to statically link even when building with CUDA? #668

vlovich opened this issue Feb 21, 2025 · 2 comments

Comments

@vlovich
Copy link
Contributor

vlovich commented Feb 21, 2025

build.rs forces a shared library to be built when CUDA is enabled but it's not immediately clear to me that's required but maybe there's something subtle about CUDA and it's not documented? I'd love to try to make the CUDA and shared vs static linkage be orthogonal.

Semi-related to #667 but not really since building as a shared library should still be expected to work even if CUDA is decoupled from shared/static.

@MarcusDunn
Copy link
Contributor

This would be great!

I've struggled in the past to statically link with CUDA, but I'd be happy to see this change.

@vlovich
Copy link
Contributor Author

vlovich commented Feb 26, 2025

I believe #671 resolves this issue.

@vlovich vlovich closed this as completed Feb 26, 2025
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

No branches or pull requests

2 participants