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

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

Open
ZepengHuo opened this issue Dec 18, 2019 · 2 comments

Comments

@ZepengHuo
Copy link

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

  • Operating system: ubuntu 16.04
  • CUDA version: 10.2.89
  • CUDNN version: 7.1
  • BLAS: 0.2.18-1ubuntu1

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
Copy link

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

@ZepengHuo
Copy link
Author

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

@earlysleepearlyup no..

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

2 participants