DLL of dependency not found #1689
-
OS: Windows 11 Hello, I am attempting to use cuda from rust in a python notebook via Rust's FFI. Project Structure:
The cargo toml of the parent pyo3 crate includes the subcrate with I have everything work when running tests in both the subcrate and parent crate (I am able to see a print function from cuda).
I am not sure if it is talking about cudart (native lib) or my cuda_lib (possibly both?). I have tried copying the .lib files into the site-packages folder without success. I also tried renaming them to .pyd and .dll. Not sure where to go from here, help is appreciated :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Alright so I solved this by using the CC library, which handled compilation and linking for me. CC code for those that might want it: |
Beta Was this translation helpful? Give feedback.
Alright so I solved this by using the CC library, which handled compilation and linking for me.
I tested in wsl and my original code worked, so idk what's up on windows with the binary not being moved over.
CC code for those that might want it:
https://github.com/haroonsyed/Rust-Machine-Learning/blob/6c67d920b3663af28c54d7dbf0e45cf949023a04/matrix_lib/build.rs#L1-L17