BVLC / caffe

Caffe: a fast open framework for deep learning.
http://caffe.berkeleyvision.org/
Other
33.98k stars 18.72k forks source link

Makefile:593: recipe for target '.build_release/src/caffe/layers/lstm_unit_layer.o' failed #6879

Open ZepengHuo opened 4 years ago

ZepengHuo commented 4 years ago

Issue summary

Makefile 593 problem, lstm_unit_layer.o' failed

Steps to reproduce

I followed this post till make all https://github.com/BVLC/caffe/wiki/Ubuntu-16.04-Installation-Guide and i got Makefile:593: recipe for target '.build_release/src/caffe/layers/lstm_unit_layer.o' failed

Tried solutions

Install all required dependency, such as widely mentioned libatlas-base-dev

System configuration

output:

CXX src/caffe/layers/lstm_unit_layer.cpp
In file included from /usr/local/cuda/include/channel_descriptor.h:61:0,
                 from /usr/local/cuda/include/cuda_runtime.h:95,
                 from ./include/caffe/util/device_alternate.hpp:36,
                 from ./include/caffe/common.hpp:19,
                 from ./include/caffe/blob.hpp:8,
                 from ./include/caffe/layer.hpp:8,
                 from src/caffe/layers/lstm_unit_layer.cpp:5:
/usr/local/cuda/include/cuda_runtime_api.h:1837:101: error: use of enum ‘cudaDeviceP2PAttr’ without previous declaration
 extern __host__ __cudart_builtin__ cudaError_t CUDARTAPI cudaDeviceGetP2PAttribute(int *value, enum cudaDeviceP2PAttr attr, int srcDevice, int dstDevice);
                                                                                                     ^
/usr/local/cuda/include/cuda_runtime_api.h:2297:25: error: expected ‘)’ before ‘*’ token
 typedef void (CUDART_CB *cudaStreamCallback_t)(cudaStream_t stream, cudaError_t status, void *userData);
                         ^
/usr/local/cuda/include/cuda_runtime_api.h:2365:9: error: ‘cudaStreamCallback_t’ has not been declared
         cudaStreamCallback_t callback, void *userData, unsigned int flags);
         ^
/usr/local/cuda/include/cuda_runtime_api.h:9580:60: error: ‘cudaGraphExec_t’ was not declared in this scope
 extern __host__ cudaError_t CUDARTAPI cudaGraphExecDestroy(cudaGraphExec_t graphExec);
                                                            ^
/usr/local/cuda/include/cuda_runtime_api.h:9600:56: error: ‘cudaGraph_t’ was not declared in this scope
 extern __host__ cudaError_t CUDARTAPI cudaGraphDestroy(cudaGraph_t graph);
                                                        ^
Makefile:593: recipe for target '.build_release/src/caffe/layers/lstm_unit_layer.o' failed
make: *** [.build_release/src/caffe/layers/lstm_unit_layer.o] Error 1
earlysleepearlyup commented 4 years ago

I met the same error. Have you solved this problem?

ZepengHuo commented 4 years ago

I met the same error. Have you solved this problem?

@earlysleepearlyup no..