Coder Social home page Coder Social logo

matio.h could not found about pspnet HOT 13 CLOSED

hszhao avatar hszhao commented on July 25, 2024
matio.h could not found

from pspnet.

Comments (13)

SahilC avatar SahilC commented on July 25, 2024 5

@sajjo79 I am facing the same issue. Did you manage to fix this?

from pspnet.

whuhxb avatar whuhxb commented on July 25, 2024 2

@SahilC Have you solved the this problem?

from pspnet.

sajjo79 avatar sajjo79 commented on July 25, 2024 1

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.

eugenelawrence avatar eugenelawrence commented on July 25, 2024

@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.

hszhao avatar hszhao commented on July 25, 2024

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.

zhengdixin avatar zhengdixin commented on July 25, 2024

@bkbkbkbkbk @hszhao
Lots of thanks for your help.

Best Wishes~

from pspnet.

sajjo79 avatar sajjo79 commented on July 25, 2024

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.

zhengdixin avatar zhengdixin commented on July 25, 2024

@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.

sajjo79 avatar sajjo79 commented on July 25, 2024

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.

kli017 avatar kli017 commented on July 25, 2024

zhengdixin's solution is right just be care of the syntax

from pspnet.

sunying23 avatar sunying23 commented on July 25, 2024

I am facing the same issue when I adopted the solution of zhengdixin. How to pay attention to the syntax? @kli017

from pspnet.

kli017 avatar kli017 commented on July 25, 2024

https://stackoverflow.com/questions/39274472/error-function-atomicadddouble-double-has-already-been-defined
@sunying23

from pspnet.

sunying23 avatar sunying23 commented on July 25, 2024

from pspnet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.