Comments (13)
@sajjo79 I am facing the same issue. Did you manage to fix this?
from pspnet.
@SahilC Have you solved the this problem?
from pspnet.
Hi,
could you please look into following error in installing the caffe provided in your PSPNet.
nvcc warning : The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
nvcc warning : The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
./include/caffe/common.cuh(9): error: function "atomicAdd(double *, double)" has already been defined
1 error detected in the compilation of "/tmp/tmpxft_00005c9b_00000000-5_interp.cpp4.ii".
Makefile:588: recipe for target '.build_release/cuda/src/caffe/util/interp.o' failed
make: *** [.build_release/cuda/src/caffe/util/interp.o] Error 1
Best
from pspnet.
@zhengdixin , You must download matio first.
You can download it at this link.
https://sourceforge.net/projects/matio/files/matio/1.5.2/
from pspnet.
Hi,
This library is required in DeepLab v2 for layer 'mat_read_layer' and 'mat_write_layer'. I have updated the README.md.
Thanks.
from pspnet.
@bkbkbkbkbk @hszhao
Lots of thanks for your help.
Best Wishes~
from pspnet.
i also want to know that is it really required to build caffe model provided in your project code? Will it work with standard caffe installation?
from pspnet.
@sajjo79 Hi, you should build the caffe provided by author. Because this caffe has a little difference from standard caffe.
For the first problem, I think you should modify the ./include/caffe/common.cuh file according to the following way:
#ifndef CAFFE_COMMON_CUH_
#define CAFFE_COMMON_CUH_
#include <cuda.h>
#if !defined(CUDA_ARCH) || CUDA_ARCH >= 600
#else
static inline device double atomicAdd(double address, double val) {
unsigned long long int address_as_ull = (unsigned long long int*)address;
unsigned long long int old = *address_as_ull, assumed;
if (val==0.0)
return __longlong_as_double(old);
do {
assumed = old;
old = atomicCAS(address_as_ull, assumed, __double_as_longlong(val +__longlong_as_double(assumed)));
} while (assumed != old);
return __longlong_as_double(old);
}
#endif
#endif
from pspnet.
Hi,
After incorporating change suggested by you, i get following error
src/caffe/util/interp.cu(150): error: no instance of overloaded function "atomicAdd" matches the argument list
argument types are: (double *, double)
detected during:
instantiation of "void caffe::caffe_gpu_interp2_kernel_backward<Dtype,packed>(int, float, float, int, Dtype *, int, int, int, int, int, int, const Dtype *, int, int, int, int, int, int) [with Dtype=double, packed=false]"
(185): here
instantiation of "void caffe::caffe_gpu_interp2_backward<Dtype,packed>(int, Dtype *, int, int, int, int, int, int, const Dtype *, int, int, int, int, int, int) [with Dtype=double, packed=false]"
(261): here
src/caffe/util/interp.cu(151): error: no instance of overloaded function "atomicAdd" matches the argument list
argument types are: (double *, double)
detected during:
instantiation of "void caffe::caffe_gpu_interp2_kernel_backward<Dtype,packed>(int, float, float, int, Dtype *, int, int, int, int, int, int, const Dtype *, int, int, int, int, int, int) [with Dtype=double, packed=false]"
(185): here
instantiation of "void caffe::caffe_gpu_interp2_backward<Dtype,packed>(int, Dtype *, int, int, int, int, int, int, const Dtype *, int, int, int, int, int, int) [with Dtype=double, packed=false]"
(261): here
src/caffe/util/interp.cu(152): error: no instance of overloaded function "atomicAdd" matches the argument list
argument types are: (double *, double)
detected during:
instantiation of "void caffe::caffe_gpu_interp2_kernel_backward<Dtype,packed>(int, float, float, int, Dtype *, int, int, int, int, int, int, const Dtype *, int, int, int, int, int, int) [with Dtype=double, packed=false]"
(185): here
instantiation of "void caffe::caffe_gpu_interp2_backward<Dtype,packed>(int, Dtype *, int, int, int, int, int, int, const Dtype *, int, int, int, int, int, int) [with Dtype=double, packed=false]"
(261): here
src/caffe/util/interp.cu(153): error: no instance of overloaded function "atomicAdd" matches the argument list
argument types are: (double *, double)
detected during:
instantiation of "void caffe::caffe_gpu_interp2_kernel_backward<Dtype,packed>(int, float, float, int, Dtype *, int, int, int, int, int, int, const Dtype *, int, int, int, int, int, int) [with Dtype=double, packed=false]"
(185): here
instantiation of "void caffe::caffe_gpu_interp2_backward<Dtype,packed>(int, Dtype *, int, int, int, int, int, int, const Dtype *, int, int, int, int, int, int) [with Dtype=double, packed=false]"
(261): here
src/caffe/util/interp.cu(162): error: no instance of overloaded function "atomicAdd" matches the argument list
argument types are: (double *, double)
detected during:
instantiation of "void caffe::caffe_gpu_interp2_kernel_backward<Dtype,packed>(int, float, float, int, Dtype *, int, int, int, int, int, int, const Dtype *, int, int, int, int, int, int) [with Dtype=double, packed=false]"
(185): here
instantiation of "void caffe::caffe_gpu_interp2_backward<Dtype,packed>(int, Dtype *, int, int, int, int, int, int, const Dtype *, int, int, int, int, int, int) [with Dtype=double, packed=false]"
(261): here
src/caffe/util/interp.cu(163): error: no instance of overloaded function "atomicAdd" matches the argument list
argument types are: (double *, double)
detected during:
instantiation of "void caffe::caffe_gpu_interp2_kernel_backward<Dtype,packed>(int, float, float, int, Dtype *, int, int, int, int, int, int, const Dtype *, int, int, int, int, int, int) [with Dtype=double, packed=false]"
(185): here
instantiation of "void caffe::caffe_gpu_interp2_backward<Dtype,packed>(int, Dtype *, int, int, int, int, int, int, const Dtype *, int, int, int, int, int, int) [with Dtype=double, packed=false]"
(261): here
src/caffe/util/interp.cu(164): error: no instance of overloaded function "atomicAdd" matches the argument list
argument types are: (double *, double)
detected during:
instantiation of "void caffe::caffe_gpu_interp2_kernel_backward<Dtype,packed>(int, float, float, int, Dtype *, int, int, int, int, int, int, const Dtype *, int, int, int, int, int, int) [with Dtype=double, packed=false]"
(185): here
instantiation of "void caffe::caffe_gpu_interp2_backward<Dtype,packed>(int, Dtype *, int, int, int, int, int, int, const Dtype *, int, int, int, int, int, int) [with Dtype=double, packed=false]"
(261): here
src/caffe/util/interp.cu(165): error: no instance of overloaded function "atomicAdd" matches the argument list
argument types are: (double *, double)
detected during:
instantiation of "void caffe::caffe_gpu_interp2_kernel_backward<Dtype,packed>(int, float, float, int, Dtype *, int, int, int, int, int, int, const Dtype *, int, int, int, int, int, int) [with Dtype=double, packed=false]"
(185): here
instantiation of "void caffe::caffe_gpu_interp2_backward<Dtype,packed>(int, Dtype *, int, int, int, int, int, int, const Dtype *, int, int, int, int, int, int) [with Dtype=double, packed=false]"
(261): here
8 errors detected in the compilation of "/tmp/tmpxft_000077b2_00000000-13_interp.compute_50.cpp1.ii".
Makefile:588: recipe for target '.build_release/cuda/src/caffe/util/interp.o' failed
make: *** [.build_release/cuda/src/caffe/util/interp.o] Error 1
from pspnet.
zhengdixin's solution is right just be care of the syntax
from pspnet.
I am facing the same issue when I adopted the solution of zhengdixin. How to pay attention to the syntax? @kli017
from pspnet.
https://stackoverflow.com/questions/39274472/error-function-atomicadddouble-double-has-already-been-defined
@sunying23
from pspnet.
from pspnet.
Related Issues (20)
- PASCAL VOC 2012
- Questions about PSPNet. HOT 6
- small size
- Reason to have a fixed inference size (473x473) HOT 1
- 请问下怎么将BVLC/caffe下的bn转换到BN?
- question about pooling layer
- Make Runtest Error HOT 2
- Invalid MEX-file '/media/sgp1053c/DATA/PSPNET-cudnn5/matlab/+caffe/private/caffe_.mexa64
- Make Error
- model performance
- C++ Prediction/Segmentation Code for PSPNet
- Could you provide the prototxt file for training PSPNet?
- [FIXED] Why are scale_factors used to scale pixel values? HOT 1
- Evaluation code
- OSX hdf5 make error HOT 1
- Hi, GPU GTX 1070 8G memory is not enough? HOT 1
- compile using cmake failed! (undefined reference to `pthread_create')
- Problem with evaluation
- math_functions.cu:375 [Check failed: status== CURAND_STATUS_SUCCESS (201 VS. 0) CURAND_STATUS_LAUNCH_FAILURE]
- TBD
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pspnet.