Code Monkey home page Code Monkey logo

Comments (12)

BassyKuo avatar BassyKuo commented on August 24, 2024 1

Hello, I try to modify this repository to support cuDNN v5 and CUDA 8.0.
Here is my modified code: https://github.com/BassyKuo/PSPNET-cudnn5
It can be built on my server environment, so maybe you can try to install this one.
If you have any trouble when you build it, please feel free to tell me. Thank you:)

from pspnet.

PapaMadeleine2022 avatar PapaMadeleine2022 commented on August 24, 2024

@bearpaw I have the same problem as follows:

./include/caffe/common.cuh(9): error: function "atomicAdd(double *, double)" has already been defined

1 error detected in the compilation of "/tmp/tmpxft_000057f4_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
make: *** Waiting for unfinished jobs....
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_00005856_00000000-5_domain_transform_forward_only_layer.cpp4.ii".
Makefile:588: recipe for target '.build_release/cuda/src/caffe/layers/domain_transform_forward_only_layer.o' failed
make: *** [.build_release/cuda/src/caffe/layers/domain_transform_forward_only_layer.o] Error 1
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_00005814_00000000-5_domain_transform_layer.cpp4.ii".
Makefile:588: recipe for target '.build_release/cuda/src/caffe/layers/domain_transform_layer.o' failed
make: *** [.build_release/cuda/src/caffe/layers/domain_transform_layer.o] Error 1

have you solved it?

from pspnet.

bearpaw avatar bearpaw commented on August 24, 2024

@IvyGongoogle Hi. I just went back to CUDA-7.5. I think this code is not ready for CUDA-8.0.

from pspnet.

PapaMadeleine2022 avatar PapaMadeleine2022 commented on August 24, 2024

@bearpaw
It sounds bad. thank you very much~

from pspnet.

PapaMadeleine2022 avatar PapaMadeleine2022 commented on August 24, 2024

@BassyKuo nice! thank you.

from pspnet.

bearpaw avatar bearpaw commented on August 24, 2024

Hi @BassyKuo
Thanks for your work!

Few more questions: Have you tried to train or test with CUDA 8.0/cudnn v5? Are the results consistent with CUDA 7.5/cudnn v4?

from pspnet.

BassyKuo avatar BassyKuo commented on August 24, 2024

@bearpaw
I have not tested the consistency because I haven't installed CUDA7.5 and cudnn v4 currently.
Maybe I can compare the result of original repository with the version I modified by turning off the cudnn usage.
Thanks for your feedback! :D

from pspnet.

liaojiacai avatar liaojiacai commented on August 24, 2024

good work!!!

from pspnet.

coderzbx avatar coderzbx commented on August 24, 2024

@BassyKuo your work helps me a lot,thank you~

from pspnet.

masterhou avatar masterhou commented on August 24, 2024

I also got this problem, nvcc8 is not support:
#include <math.h> or
#include <cmath>
using std:isnan
using std:isinf

error:
NVCC src/caffe/layers/contrastive_loss_layer.cu
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.hpp(85): error: namespace "std" has no member "isnan"

./include/caffe/common.hpp(86): error: namespace "std" has no member "isinf"


nvcc -V
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2016 NVIDIA Corporation
Built on Tue_Jan_10_13:22:03_CST_2017
Cuda compilation tools, release 8.0, V8.0.61

uname -a
Linux cuda 4.13.0-21-generic #24-Ubuntu SMP Mon Dec 18 17:29:16 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

gcc version 5.4.1 20171010 (Ubuntu 5.5.0-1ubuntu1)

from pspnet.

EchoAmor avatar EchoAmor commented on August 24, 2024

@bearpaw 您好!请问您当时复现PSP用的是cuda7.5+cudnn4.0嘛?我现在想复现PSAnet,一直在报各种错误。。

from pspnet.

bearpaw avatar bearpaw commented on August 24, 2024

@EchoAmor Yes. But it's a too long time ago. I can't remember the details. You should follow #46 (comment) to solve your problem.

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.