hi there, i was wondering if anyone has seen this error when running 'make all' with gpu. i already downloaded cudnn.h and put it in /usr/include. any feedback is much appreciated.
ll@m0:~/code/caffe$ sudo make all
g++ src/caffe/layers/concat_layer.cpp -pthread -fPIC -DNDEBUG -O2 -DUSE_CUDNN -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I.build_release/src -I./src -I./include -I/usr/local/cuda/include -Wall -Wno-sign-compare -c -o .build_release/src/caffe/layers/concat_layer.o 2> .build_release/src/caffe/layers/concat_layer.o.warnings.txt \
|| (cat .build_release/src/caffe/layers/concat_layer.o.warnings.txt; exit 1)
In file included from ./include/caffe/util/device_alternate.hpp:40:0,
from ./include/caffe/common.hpp:18,
from ./include/caffe/blob.hpp:4,
from ./include/caffe/layer.hpp:8,
from src/caffe/layers/concat_layer.cpp:3:
./include/caffe/util/cudnn.hpp:59:32: error: variable or field ‘createTensor4dDesc’ declared void
inline void createTensor4dDesc(cudnnTensor4dDescriptor_t* desc) {
^
./include/caffe/util/cudnn.hpp:59:32: error: ‘cudnnTensor4dDescriptor_t’ was not declared in this scope
./include/caffe/util/cudnn.hpp:59:59: error: ‘desc’ was not declared in this scope
inline void createTensor4dDesc(cudnnTensor4dDescriptor_t* desc) {
^
./include/caffe/util/cudnn.hpp:64:29: error: variable or field ‘setTensor4dDesc’ declared void
inline void setTensor4dDesc(cudnnTensor4dDescriptor_t* desc,
^
./include/caffe/util/cudnn.hpp:64:29: error: ‘cudnnTensor4dDescriptor_t’ was not declared in this scope
./include/caffe/util/cudnn.hpp:64:56: error: ‘desc’ was not declared in this scope
inline void setTensor4dDesc(cudnnTensor4dDescriptor_t* desc,
^
./include/caffe/util/cudnn.hpp:65:5: error: expected primary-expression before ‘int’
int n, int c, int h, int w,
^
./include/caffe/util/cudnn.hpp:65:12: error: expected primary-expression before ‘int’
int n, int c, int h, int w,
^
./include/caffe/util/cudnn.hpp:65:19: error: expected primary-expression before ‘int’
int n, int c, int h, int w,
^
./include/caffe/util/cudnn.hpp:65:26: error: expected primary-expression before ‘int’
int n, int c, int h, int w,
^
./include/caffe/util/cudnn.hpp:66:5: error: expected primary-expression before ‘int’
int stride_n, int stride_c, int stride_h, int stride_w) {
^
./include/caffe/util/cudnn.hpp:66:19: error: expected primary-expression before ‘int’
int stride_n, int stride_c, int stride_h, int stride_w) {
^
./include/caffe/util/cudnn.hpp:66:33: error: expected primary-expression before ‘int’
int stride_n, int stride_c, int stride_h, int stride_w) {
^
./include/caffe/util/cudnn.hpp:66:47: error: expected primary-expression before ‘int’
int stride_n, int stride_c, int stride_h, int stride_w) {
^
./include/caffe/util/cudnn.hpp:72:29: error: variable or field ‘setTensor4dDesc’ declared void
inline void setTensor4dDesc(cudnnTensor4dDescriptor_t* desc,
^
./include/caffe/util/cudnn.hpp:72:29: error: ‘cudnnTensor4dDescriptor_t’ was not declared in this scope
./include/caffe/util/cudnn.hpp:72:56: error: ‘desc’ was not declared in this scope
inline void setTensor4dDesc(cudnnTensor4dDescriptor_t* desc,
^
./include/caffe/util/cudnn.hpp:73:5: error: expected primary-expression before ‘int’
int n, int c, int h, int w) {
^
./include/caffe/util/cudnn.hpp:73:12: error: expected primary-expression before ‘int’
int n, int c, int h, int w) {
^
./include/caffe/util/cudnn.hpp:73:19: error: expected primary-expression before ‘int’
int n, int c, int h, int w) {
^
./include/caffe/util/cudnn.hpp:73:26: error: expected primary-expression before ‘int’
int n, int c, int h, int w) {
^
./include/caffe/util/cudnn.hpp:97:5: error: ‘cudnnTensor4dDescriptor_t’ has not been declared
cudnnTensor4dDescriptor_t bottom, cudnnFilterDescriptor_t filter,
^
./include/caffe/util/cudnn.hpp: In function ‘void caffe::cudnn::setConvolutionDesc(cudnnConvolutionStruct**, int, cudnnFilterDescriptor_t, int, int, int, int)’:
./include/caffe/util/cudnn.hpp:100:70: error: there are no arguments to ‘cudnnSetConvolutionDescriptor’ that depend on a template parameter, so a declaration of ‘cudnnSetConvolutionDescriptor’ must be available [-fpermissive]
pad_h, pad_w, stride_h, stride_w, 1, 1, CUDNN_CROSS_CORRELATION));
^
./include/caffe/util/cudnn.hpp:11:28: note: in definition of macro ‘CUDNN_CHECK’
cudnnStatus_t status = condition; \
^
./include/caffe/util/cudnn.hpp:100:70: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
pad_h, pad_w, stride_h, stride_w, 1, 1, CUDNN_CROSS_CORRELATION));
^
./include/caffe/util/cudnn.hpp:11:28: note: in definition of macro ‘CUDNN_CHECK’
cudnnStatus_t status = condition; \
^
./include/caffe/util/cudnn.hpp: In function ‘void caffe::cudnn::createPoolingDesc(cudnnPoolingStruct**, caffe::PoolingParameter_PoolMethod, cudnnPoolingMode_t*, int, int, int, int)’:
./include/caffe/util/cudnn.hpp:119:27: error: there are no arguments to ‘cudnnSetPoolingDescriptor’ that depend on a template parameter, so a declaration of ‘cudnnSetPoolingDescriptor’ must be available [-fpermissive]
stride_h, stride_w));
^
./include/caffe/util/cudnn.hpp:11:28: note: in definition of macro ‘CUDNN_CHECK’
cudnnStatus_t status = condition; \
^
In file included from ./include/caffe/loss_layers.hpp:11:0,
from ./include/caffe/common_layers.hpp:12,
from ./include/caffe/vision_layers.hpp:10,
from src/caffe/layers/concat_layer.cpp:5:
./include/caffe/neuron_layers.hpp: At global scope:
./include/caffe/neuron_layers.hpp:383:3: error: ‘cudnnTensor4dDescriptor_t’ does not name a type
cudnnTensor4dDescriptor_t bottom_desc_;
^
./include/caffe/neuron_layers.hpp:384:3: error: ‘cudnnTensor4dDescriptor_t’ does not name a type
cudnnTensor4dDescriptor_t top_desc_;
^
./include/caffe/neuron_layers.hpp:467:3: error: ‘cudnnTensor4dDescriptor_t’ does not name a type
cudnnTensor4dDescriptor_t bottom_desc_;
^
./include/caffe/neuron_layers.hpp:468:3: error: ‘cudnnTensor4dDescriptor_t’ does not name a type
cudnnTensor4dDescriptor_t top_desc_;
^
./include/caffe/neuron_layers.hpp:553:3: error: ‘cudnnTensor4dDescriptor_t’ does not name a type
cudnnTensor4dDescriptor_t bottom_desc_;
^
./include/caffe/neuron_layers.hpp:554:3: error: ‘cudnnTensor4dDescriptor_t’ does not name a type
cudnnTensor4dDescriptor_t top_desc_;
^
In file included from ./include/caffe/vision_layers.hpp:10:0,
from src/caffe/layers/concat_layer.cpp:5:
./include/caffe/common_layers.hpp:410:3: error: ‘cudnnTensor4dDescriptor_t’ does not name a type
cudnnTensor4dDescriptor_t bottom_desc_;
^
./include/caffe/common_layers.hpp:411:3: error: ‘cudnnTensor4dDescriptor_t’ does not name a type
cudnnTensor4dDescriptor_t top_desc_;
^
In file included from src/caffe/layers/concat_layer.cpp:5:0:
./include/caffe/vision_layers.hpp:148:10: error: ‘cudnnTensor4dDescriptor_t’ was not declared in this scope
vector<cudnnTensor4dDescriptor_t> bottom_descs_, top_descs_;
^
./include/caffe/vision_layers.hpp:148:35: error: template argument 1 is invalid
vector<cudnnTensor4dDescriptor_t> bottom_descs_, top_descs_;
^
./include/caffe/vision_layers.hpp:148:35: error: template argument 2 is invalid
./include/caffe/vision_layers.hpp:149:3: error: ‘cudnnTensor4dDescriptor_t’ does not name a type
cudnnTensor4dDescriptor_t bias_desc_;
^
./include/caffe/vision_layers.hpp:347:3: error: ‘cudnnTensor4dDescriptor_t’ does not name a type
cudnnTensor4dDescriptor_t bottom_desc_, top_desc_;
^
make: *** [.build_release/src/caffe/layers/concat_layer.o] Error 1