PSPNet
PSPNet copied to clipboard
compilation error
src/caffe/layers/domain_transform_forward_only_layer.cu(8): error: function "atomicAdd(double *, double)" has already been defined
I have this problem, too. I use matlab2015a. Or should I use a special version?
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.
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