Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can this version be compiled by CUDA 8.0? #46

Closed
bearpaw opened this issue Jun 13, 2017 · 12 comments
Closed

Can this version be compiled by CUDA 8.0? #46

bearpaw opened this issue Jun 13, 2017 · 12 comments

Comments

@bearpaw
Copy link

bearpaw commented Jun 13, 2017

Hi, I found that there are some errors when compiling with CUDA 8.0.

1 error detected in the compilation of "/tmp/tmpxft_00000a2e_00000000-5_domain_transform_forward_only_layer.cpp4.ii".
make: *** [.build_release/cuda/src/caffe/layers/domain_transform_forward_only_layer.o] Error 1
make: *** Waiting for unfinished jobs....

This problem can be also seen when compiling deeplab with CUDA 8.0.

Do you have any solution for this problem? Thank you.

@PapaMadeleine2022
Copy link

PapaMadeleine2022 commented Jun 18, 2017

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

@bearpaw
Copy link
Author

bearpaw commented Jun 19, 2017

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

@PapaMadeleine2022
Copy link

@bearpaw
It sounds bad. thank you very much~

@BassyKuo
Copy link

BassyKuo commented Jul 2, 2017

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:)

@PapaMadeleine2022
Copy link

@BassyKuo nice! thank you.

@bearpaw
Copy link
Author

bearpaw commented Jul 3, 2017

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?

@BassyKuo
Copy link

BassyKuo commented Jul 3, 2017

@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

@liaojiacai
Copy link

good work!!!

@coderzbx
Copy link

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

@masterhou
Copy link

masterhou commented Dec 29, 2017

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)

@EchoAmor
Copy link

EchoAmor commented Dec 4, 2018

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

@bearpaw
Copy link
Author

bearpaw commented Dec 7, 2018

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

@bearpaw bearpaw closed this as completed Dec 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants