-
Notifications
You must be signed in to change notification settings - Fork 46
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
pip install not working due to cuda.h missing error #21
Comments
You also need to have cuda installed, cuda.h is a dependency from cuda |
I know, I am using cuda 8.0 For some reason it is not accessing cuda.h . (Pytorch runs on the gpu with cuda 8.0) |
Make sure cuda.h is in your path |
Okay, I have added this to my path: And it still doesn't work, I am getting the same error. Is this the exact path I am supposed to add? I think the error says that the installation looks at this directory and cannot find cuda.h: And there is no cuda.h under this directory... What should I do? |
Try following the instructions on the cuda quick start guide, they describe how you can update your corresponding path variables (you'll need both path and ld_library_path) http://docs.nvidia.com/cuda/cuda-quick-start-guide/index.html |
Path and ld_library_path are properly set-up for me. As I have said, my pytorch works perfectly fine with cuda. |
Can you try making a soft link from /usr/local/cuda/ to /usr/local/cuda-8.0/ ? |
Alright, creating the soft link worked. Thank you! I am closing the issue. |
I had the same issue. I resolved it by exporting some environmental variables: $ export C_INCLUDE_PATH=${CUDA_HOME}/include:${C_INCLUDE_PATH} |
@ycemsubakan , how did you create the soft link? can you give the command please? |
the fix for me was to install also on a brand new ubuntu it is not needed to install nvidia-384, just install cuda-9.0 and graphics driver is included in it all steps from here : now pycuda works (for tensorrt 3.0.4 tar file install on ubuntu 16.04 - cuda 9.0 deb - cudnn 7.0.5 deb) |
Could not find any cudnn.h matching version '7' in any subdirectory: |
Additional, you must set CUDA_HOME and add it to $PATH.
|
I have tried pip install pytorch-fft, on two different machines with gpus, and on both I am getting this error:
venv/local/lib/python2.7/site-packages/torch/utils/ffi/../../lib/include/THC/THCGeneral.h:9:18: fatal error: cuda.h: No such file or directory
I tried python 2.7 and 3.6. I also tried to install without using a virtual environment.
P.S.: I first got the error which says the package cffi was missing. I installed that package, and now I am getting this error.
I would appreciate your help!
The text was updated successfully, but these errors were encountered: