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

CUDA_LIBRARY_PATH on Ubuntu #7

Open
bheisler opened this issue Dec 5, 2018 · 3 comments
Open

CUDA_LIBRARY_PATH on Ubuntu #7

bheisler opened this issue Dec 5, 2018 · 3 comments
Labels
bug Something isn't working

Comments

@bheisler
Copy link
Contributor

bheisler commented Dec 5, 2018

Some users of RustaCUDA have found that setting CUDA_LIBRARY_PATH isn't sufficient to allow them to build cuda-sys: bheisler/RustaCUDA#15

I ran into a similar problem while setting up my Travis-CI builds for RustaCUDA on an Ubuntu VM which might be related. If I set CUDA_LIBRARY_PATH to /usr/local/cuda-8.0/targets/x86_64-linux/lib, it could find libcublas.so and libcudart.so but not libcuda.so (which is in /usr/local/cuda-8.0/targets/x86_64-linux/lib/stubs for some reason).

@termoshtt termoshtt added the bug Something isn't working label Jan 5, 2019
termoshtt added a commit that referenced this issue Jan 13, 2019
@alphastrata
Copy link

Is there a good solution to this yet?

@LutzCle
Copy link
Contributor

LutzCle commented Jun 30, 2019

Setting

export C_INCLUDE_PATH="/usr/local/cuda/include"
export LIBRARY_PATH="/usr/local/cuda/lib64"

works for me on Ubuntu 16.04 and 18.04. I don't have CUDA_LIBRARY_PATH set.

@bheisler
Copy link
Contributor Author

Changing the path that the GCC linker searches for includes and libraries - that seems like a pretty big hammer. I'd prefer to figure out why CUDA_LIBRARY_PATH doesn't work and fix cuda-sys, if possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants