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

'cudnn.h' file not found error [OS X] #1572

Closed
luzhi opened this issue Dec 13, 2014 · 8 comments
Closed

'cudnn.h' file not found error [OS X] #1572

luzhi opened this issue Dec 13, 2014 · 8 comments

Comments

@luzhi
Copy link

luzhi commented Dec 13, 2014

When I try to compile caffe by make all, I got the following error message:

In file included from src/caffe/blob.cpp:1:
In file included from ./include/caffe/blob.hpp:4:
In file included from ./include/caffe/common.hpp:18:
In file included from ./include/caffe/util/device_alternate.hpp:40:
./include/caffe/util/cudnn.hpp:5:10: fatal error: 'cudnn.h' file not found

include <cudnn.h>

          ^

1 error generated.
make: *** [.build_release/src/caffe/blob.o] Error 1

My platform is OS X 10.9 with GPU (so, I uncommented the line "USE_CUDNN" and downloaded the cuDNN.

I did not find any file called "cudnn.h" in the cuDNN package downloaded from Nvidia website.

Could you please advise me any solution to this problem? Thanks!

@zhfe99
Copy link

zhfe99 commented Dec 13, 2014

https://developer.nvidia.com/cuDNN
You need register as the CUDA developer first and then you will get the dowload link.

@vimalthilak
Copy link

Are you sure cudnn lib is available for OS X? Last time I checked, there was not support for OS X.

@luzhi
Copy link
Author

luzhi commented Dec 14, 2014

Hi, @zhfe99 , yes, I downloaded the cuDNN from the link.

Hi, @vimalthilak , the latest version provides a link for OS X platform. But in the package, there is no file called cudnn.h. Instead, there is a shortcut file called libcudnn.dylib. Also, it contains the other files: libcudnn.6.5.dylib, libcudnn_static.a. Please see the screenshot of the folder following:

screen shot 2014-12-14 at 4 38 39 pm

Thanks for both you guys!

@vimalthilak
Copy link

@luzhi Thanks for pointing out that cuDNN v2 RC now supports OS X! It looks like there is a bug in the release package in that there is not header file! You could file a bug at developer.nvidia.com asking for an updated release package. If you are feeling adventurous, you could try using the include file in the linux package.

@bgreen-litl
Copy link

I ran into this as well. I did file a bug with nvidia. In the meantime I also tried using the header file from the linux version but that blows up on compile with seemingly mismatched parameters.

@vimalthilak
Copy link

@bgreen-litl @luzhi
Received an email from nvidia that the package has been updated.

Please note that caffe doesn't use cud R2 yet. I was advised to wait for a few weeks before checking whether cudnn R2 has been enabled. Until then, I suppose you could play around with cudnn directly.

@bgreen-litl
Copy link

Ah, okay. Thanks. The nvidia folks said that the header file from the linux tarball should work, but it didn't for me so perhaps that's why.

@shelhamer
Copy link
Member

#1740 updates the Caffe Makefile for Yosemite and #1731 will integrate cuDNN R2 (see #1739 for an initial complete patch). Try installing on OS X with cuDNN R2 with both of these PRs merged -- or wait for the next release to master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants