PSPNet icon indicating copy to clipboard operation
PSPNet copied to clipboard

compilation error

Open mingminzhen opened this issue 8 years ago • 3 comments

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

mingminzhen avatar Feb 09 '17 13:02 mingminzhen

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

wtliao avatar Feb 09 '17 19:02 wtliao

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.

qqning avatar Feb 10 '17 04:02 qqning

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

mingminzhen avatar Feb 14 '17 06:02 mingminzhen