-
Notifications
You must be signed in to change notification settings - Fork 220
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_HOME environment variable is not set #26
Comments
That's odd. Maybe you have an unusual install location for CUDA. Either way, just setting |
Thanks. My problem is solved. |
@zzd1992 Could you tell how to solve the problem about "the CUDA_HOME environment variable is not set"? |
This is worked in my situation. |
I am getting this error in a conda env on a server and I have cudatoolkit installed on the conda env. What should the CUDA_HOME be in my case. |
@mmahdavian cudatoolkit probably won't work for you, it doesn't provide access to low level c++ apis. You'd need to install CUDA using the official method. |
I got a similar error when using pycharm, with unusual cuda install location. I just add the |
The problem could be solved by installing the whole cuda through the nvida website. and when installing it, you may come across some problem. then https://askubuntu.com/questions/1280205/problem-while-installing-cuda-toolkit-in-ubuntu-18-04/1315116#1315116?newreg=ec85792ef03b446297a665e21fff5735 the answer may be to help you. GOOD LUCK |
I am getting this issue on Windows. The weird thing is, I have set CUDA_HOME and when I run the code from pytorch to find CUDA_HOME outside of the pip installer, it works perfectly. Does pip hide environment variables? |
Upon further debugging, it seems that install of torch that pip installs in its isolated build environment cannot detect CUDA. However, the install of torch outside it can. Unfortunately, building with |
I work on ubuntu16.04, cuda9.0 and Pytorch1.0.
When I run your example code
cuda/setup.py
:However, I am sure cuda9.0 in my computer is installed correctly.
How to fix this problem?
The text was updated successfully, but these errors were encountered: