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

compilation error #24

Open
mingminzhen opened this issue Feb 9, 2017 · 3 comments
Open

compilation error #24

mingminzhen opened this issue Feb 9, 2017 · 3 comments

Comments

@mingminzhen
Copy link

src/caffe/layers/domain_transform_forward_only_layer.cu(8): error: function "atomicAdd(double *, double)" has already been defined

@wtliao
Copy link

wtliao commented Feb 9, 2017

I have this problem, too. I use matlab2015a. Or should I use a special version?

@qqning
Copy link

qqning commented Feb 10, 2017

Hi, you may have use CUDA8.0. CUDA8.0 has it own implementation of function atomicAdd.
Change your file /include/caffe/common.cuh as here should solve your issue.

@mingminzhen
Copy link
Author

I see. just need to do the following
#if !defined(CUDA_ARCH) || CUDA_ARCH >= 600
#else
<... place here your own pre-pascal atomicAdd definition ...>
#endif
int file /include/caffe/common.cuh

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

3 participants