-
Notifications
You must be signed in to change notification settings - Fork 18.7k
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
2 errors detected in the compilation of "/tmp/tmpxft_000027fb_00000000-12_math_functions.compute_35.cpp1.ii". #769
Comments
Seems that math_functions.cu is calling cuda's signbit instead of std::signbit, so maybe you are compiling a version different from the current master or dev head? |
thank you! |
fix problem with BVLC#769
Glad it works :) I wasn't reading the code carefully enough apparently. Closing this one and will address the pull request separately. |
You can add macro judgment before atomicAdd.Open the file ./include/caffe/common.cuh and change it to // Copyright 2014 George Papandreou
|
When I execute the command $ make all, I receive a error message
Help me, thank you!
/usr/local/cuda/bin/nvcc -ccbin=/usr/bin/g++ -Xcompiler -fPIC -DNDEBUG -O2 -DUSE_MKL -I/usr/local/include/python2.7 -I/usr/local/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -Ibuild/src -I./src -I./include -I/usr/local/cuda/include -I/opt/intel/mkl/include -gencode arch=compute_20,code=sm_20 -gencode arch=compute_20,code=sm_21 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -c src/caffe/util/math_functions.cu -o build/src/caffe/util/math_functions.cuo
src/caffe/util/math_functions.cu(140): error: calling a host function("std::signbit ") from a global function("caffe::sgnbit_kernel ") is not allowed
src/caffe/util/math_functions.cu(140): error: calling a host function("std::signbit ") from a global function("caffe::sgnbit_kernel ") is not allowed
2 errors detected in the compilation of "/tmp/tmpxft_000027fb_00000000-12_math_functions.compute_35.cpp1.ii".
make: *** [build/src/caffe/util/math_functions.cuo] Error 2
The text was updated successfully, but these errors were encountered: