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

GPU not found #10

Open
arneelof opened this issue Jun 7, 2021 · 4 comments
Open

GPU not found #10

arneelof opened this issue Jun 7, 2021 · 4 comments
Labels
question Further information is requested

Comments

@arneelof
Copy link

arneelof commented Jun 7, 2021

Sorry to bother, but for some reason I can not get miga to find my GPU.

Running ubuntu 20.04 with nvidia-cuda-toolkit 10.1.244

Perhaps it is something trivial such that I just have the wrong path in CUDA_HOME (I tried /usr/bin/ as well /usr/lib/nvidia-cuda-toolkit/ and some others without success.

Cuda looks OK to me:
$ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2019 NVIDIA Corporation
Built on Sun_Jul_28_19:07:16_PDT_2019
Cuda compilation tools, release 10.1, V10.1.243

Any idea are appreciated.

@caioss
Copy link
Owner

caioss commented Jun 7, 2021

Dear @arneelof

Thanks for the question. I'm happy to see that other people are interested in Miga.

The CUDA_HOME variable should point to /usr for toolkits installed using the Ubuntu repo. Running CUDA_HOME=/usr pip3 install miga should work. Just to be sure, you may run pip with --verbose and check if the message Installing with CUDA is written to the output.

Important note. Pip will try to reuse the wheels it built for the first installation (without CUDA). So you'll have to either clear pip's cache before the next installation or run pip with the --no-cache-dir option (available for pip 6.0 or newer).

@caioss caioss added the question Further information is requested label Jun 7, 2021
@arneelof
Copy link
Author

arneelof commented Jun 8, 2021 via email

@caioss
Copy link
Owner

caioss commented Jun 8, 2021

Dear @arneelof

This could be a problem in the compilation of the GPU code. Please send me the output of this command: CUDA_HOME=/usr pip3 install miga --no-cache-dir --verbose

@arneelof
Copy link
Author

arneelof commented Jun 8, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
2 participants