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

Compile caffe error on GPU mode #101

Open
trikim opened this issue Mar 16, 2018 · 1 comment
Open

Compile caffe error on GPU mode #101

trikim opened this issue Mar 16, 2018 · 1 comment

Comments

@trikim
Copy link

trikim commented Mar 16, 2018

I have succeed to compile caffe with CPU mode.
But when I tried to compile it with GPU mode, I met these problems.

...
[ 5%] Building NVCC (Device) object src/caffe/CMakeFiles/cuda_compile.dir/layers/cuda_compile_generated_silence_layer.cu.o
[ 5%] Building NVCC (Device) object src/caffe/CMakeFiles/cuda_compile.dir/layers/cuda_compile_generated_eltwise_layer.cu.o
/home/care/git/person_search/caffe/include/caffe/util/cudnn.hpp(107): error: too few arguments in function call
1 error detected in the compilation of "/tmp/tmpxft_0000762a_00000000-5_im2col.cpp4.ii".
CMake Error at cuda_compile_generated_im2col.cu.o.cmake:266 (message):
Error generating file
/home/care/git/person_search/caffe/build/src/caffe/CMakeFiles/cuda_compile.dir/util/./cuda_compile_generated_im2col.cu.o
...

The commonds I have entered are(my cudnn* files are copied to responding "cuda" folders):
cd caffe
mkdir build
cd build
cmake .. -DUSE_MPI=ON -DCUDNN_INCLUDE=/usr/local/cuda/include -DCUDNN_LIBRARY=/usr/local/cuda/lib64/libcudnn.so
make -j8
my cuda version is 8.0, cudnn version is 6.0.21, gcc version is 5.4.

@SamvitJ
Copy link

SamvitJ commented Jun 7, 2018

I think cudnn version has to be v5.1, as listed in the requirements. I'm running into this issue using cuda 9.0 + cudnn 7.0.5.

This seems to be the accepted explanation for the 'two few arguments in function call' error message in the Caffe install: happynear/caffe-windows#194

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