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 v2.5.48 and data structures from cudnn v3 #3214

Closed
RadekSimkanic opened this issue Oct 18, 2015 · 8 comments
Closed

cudnn v2.5.48 and data structures from cudnn v3 #3214

RadekSimkanic opened this issue Oct 18, 2015 · 8 comments

Comments

@RadekSimkanic
Copy link

I was problem with compilation:

CXX src/caffe/layer_factory.cpp
In file included from src/caffe/layer_factory.cpp:11:0:
./include/caffe/vision_layers.hpp:310:3: error: ‘cudnnConvolutionBwdFilterAlgo_t’ does not name a type
   cudnnConvolutionBwdFilterAlgo_t *bwd_filter_algo_;
   ^
./include/caffe/vision_layers.hpp:311:3: error: ‘cudnnConvolutionBwdDataAlgo_t’ does not name a type
   cudnnConvolutionBwdDataAlgo_t *bwd_data_algo_;
   ^
./include/caffe/vision_layers.hpp:477:3: error: ‘cudnnLRNDescriptor_t’ does not name a type
   cudnnLRNDescriptor_t norm_desc_;
   ^
./include/caffe/vision_layers.hpp:504:3: error: ‘cudnnLRNDescriptor_t’ does not name a type
   cudnnLRNDescriptor_t norm_desc_;
   ^
src/caffe/layer_factory.cpp: In function ‘boost::shared_ptr<caffe::Layer<Dtype> > caffe::GetLRNLayer(const caffe::LayerParameter&)’:
src/caffe/layer_factory.cpp:94:44: error: ‘CUDNN_LRN_MAX_N’ was not declared in this scope
       if (param.lrn_param().local_size() > CUDNN_LRN_MAX_N) {
                                            ^
src/caffe/layer_factory.cpp: In function ‘boost::shared_ptr<caffe::Layer<Dtype> > caffe::GetTanHLayer(const caffe::LayerParameter&) [with Dtype = double]’:
src/caffe/layer_factory.cpp:196:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
src/caffe/layer_factory.cpp: In function ‘boost::shared_ptr<caffe::Layer<Dtype> > caffe::GetTanHLayer(const caffe::LayerParameter&) [with Dtype = float]’:
src/caffe/layer_factory.cpp:196:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
src/caffe/layer_factory.cpp: In function ‘boost::shared_ptr<caffe::Layer<Dtype> > caffe::GetSoftmaxLayer(const caffe::LayerParameter&) [with Dtype = double]’:
src/caffe/layer_factory.cpp:173:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
src/caffe/layer_factory.cpp: In function ‘boost::shared_ptr<caffe::Layer<Dtype> > caffe::GetSoftmaxLayer(const caffe::LayerParameter&) [with Dtype = float]’:
src/caffe/layer_factory.cpp:173:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
src/caffe/layer_factory.cpp: In function ‘boost::shared_ptr<caffe::Layer<Dtype> > caffe::GetSigmoidLayer(const caffe::LayerParameter&) [with Dtype = double]’:
src/caffe/layer_factory.cpp:150:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
src/caffe/layer_factory.cpp: In function ‘boost::shared_ptr<caffe::Layer<Dtype> > caffe::GetSigmoidLayer(const caffe::LayerParameter&) [with Dtype = float]’:
src/caffe/layer_factory.cpp:150:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
src/caffe/layer_factory.cpp: In function ‘boost::shared_ptr<caffe::Layer<Dtype> > caffe::GetReLULayer(const caffe::LayerParameter&) [with Dtype = double]’:
src/caffe/layer_factory.cpp:127:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
src/caffe/layer_factory.cpp: In function ‘boost::shared_ptr<caffe::Layer<Dtype> > caffe::GetReLULayer(const caffe::LayerParameter&) [with Dtype = float]’:
src/caffe/layer_factory.cpp:127:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
src/caffe/layer_factory.cpp: In function ‘boost::shared_ptr<caffe::Layer<Dtype> > caffe::GetLRNLayer(const caffe::LayerParameter&) [with Dtype = double]’:
src/caffe/layer_factory.cpp:104:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
src/caffe/layer_factory.cpp: In function ‘boost::shared_ptr<caffe::Layer<Dtype> > caffe::GetLRNLayer(const caffe::LayerParameter&) [with Dtype = float]’:
src/caffe/layer_factory.cpp:104:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
src/caffe/layer_factory.cpp: In function ‘boost::shared_ptr<caffe::Layer<Dtype> > caffe::GetPoolingLayer(const caffe::LayerParameter&) [with Dtype = double]’:
src/caffe/layer_factory.cpp:67:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
src/caffe/layer_factory.cpp: In function ‘boost::shared_ptr<caffe::Layer<Dtype> > caffe::GetPoolingLayer(const caffe::LayerParameter&) [with Dtype = float]’:
src/caffe/layer_factory.cpp:67:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
src/caffe/layer_factory.cpp: In function ‘boost::shared_ptr<caffe::Layer<Dtype> > caffe::GetConvolutionLayer(const caffe::LayerParameter&) [with Dtype = double]’:
src/caffe/layer_factory.cpp:39:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
src/caffe/layer_factory.cpp: In function ‘boost::shared_ptr<caffe::Layer<Dtype> > caffe::GetConvolutionLayer(const caffe::LayerParameter&) [with Dtype = float]’:
src/caffe/layer_factory.cpp:39:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
Makefile:544: recipe for target '.build_release/src/caffe/layer_factory.o' failed
make: *** [.build_release/src/caffe/layer_factory.o] Error 1

Source code of Caffe contains data structures used in cudnn v3. It would be worthwhile to mention in instruction of install. Eventually source code update for both version cudnn (v2 and v3) via flag.

I had modify source code via commit:
ecac7ff?diff=unified

@shelhamer
Copy link
Member

Noted in install docs by #3218. Thanks for reporting.

@RadekSimkanic
Copy link
Author

Somebody should change this:
http://caffe.berkeleyvision.org/installation.html

@shelhamer
Copy link
Member

What should be changed? The page was updated in #3218 but PRs for further doc changes are welcome.

@RadekSimkanic
Copy link
Author

Sorry for mystification. It is also necessary to change version of CUDA:

CUDA is required for GPU mode.

  • library version 7.0 and the latest driver version are recommended~~, but 6.* is fine too~~

because CUDNN v3 needs CUDA v7+.

I and some other people would welcome the branch (e.g.: master-cudnn-2) with old source code where is available use CUDNN v2.5.48

RadekSimkanic pushed a commit to RadekSimkanic/caffe-for-cudnn-v2.5.48 that referenced this issue Oct 28, 2015
@RadekSimkanic
Copy link
Author

I created modification for CUDNN v2.5.48 for people who need it:
https://github.com/RadekSimkanic/caffe-for-cudnn-v2.5.48

@luoxingcheng
Copy link

I have the same question with you.Did you solve it?

@RadekSimkanic
Copy link
Author

Maybe I don't understand you. Did you try modified version of caffe for cudnn 2.5.48?
https://github.com/RadekSimkanic/caffe-for-cudnn-v2.5.48
Eventually tell more about your problem.

@RadekSimkanic
Copy link
Author

I just have to warn, this version don't have implemented new things.

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

No branches or pull requests

3 participants