Rust-GPU / Rust-CUDA

Ecosystem of libraries and tools for writing and executing fast GPU code fully in Rust.
Apache License 2.0
2.97k stars 112 forks source link

libnvvm.so not found #78

Closed jafioti closed 2 years ago

jafioti commented 2 years ago

I'm following the add example, and I get to the last step, but when I build, I get this: cuda_test/cuda_runner/target/debug/build/cuda_runner-170008ea0ebbe57c/build-script-build: error while loading shared libraries: libnvvm.so.4: cannot open shared object file: No such file or directory

As far as I can tell, libnvvm.so is in cuda, which should be found by rustcuda. Is there any env variable I need to set, or any place I need to copy libnvvm.so?

jafioti commented 2 years ago

Nevermind, I fixed it by adding the folder containing libnvvm.so to my LD_LIBRARY_PATH