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

Search for library instead of header files in build script #172

Open
ViliamVadocz opened this issue Jul 24, 2023 · 1 comment
Open

Search for library instead of header files in build script #172

ViliamVadocz opened this issue Jul 24, 2023 · 1 comment

Comments

@ViliamVadocz
Copy link
Contributor

The build script currently searches for cuda.h instead of libcuda.so on Linux and cuda.lib on Windows. The location of the header might not be indicative of the library location. The header is not needed, but the library is.

You could do something similar to the build script in nvidia-video-codec-sdk: https://github.com/ViliamVadocz/nvidia-video-codec-sdk/blob/master/build.rs

@vmx
Copy link

vmx commented Aug 17, 2023

Having the search for the library in a separate crate like https://github.com/Rust-GPU/Rust-CUDA/tree/8a6cb734d21d5582052fa5b38089d1aa0f4d582f/crates/find_cuda_helper is quite nice, as it then can also be used in other projects, so that not everyone has to implement their own logic.

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