CharlesShang / DCNv2

Deformable Convolutional Networks v2 with Pytorch
BSD 3-Clause "New" or "Revised" License
1.29k stars 401 forks source link

Build process is not working (error: command '/usr/bin/nvcc' failed with exit status 1: During Build Process) #53

Open itsss opened 4 years ago

itsss commented 4 years ago
$ ./make.sh
running build
running build_ext
building '_ext' extension

(...)

/usr/include/c++/6/type_traits:1558:8: note: provided for ‘template<class _From, class _To> struct std::is_convertible’
     struct is_convertible
        ^~~~~~~~~~~~~~
/usr/include/c++/6/tuple:502:1: error: body of constexpr function ‘static constexpr bool std::_TC<<anonymous>, _Elements>::_NonNestedTuple() [with _SrcTuple = std::tuple<at::Tensor, at::Tensor, at::Tensor, at::Tensor>&&; bool <anonymous> = true; _Elements = {at::Tensor, at::Tensor, at::Tensor, at::Tensor}]’ not a return-statement
     }
 ^
error: command '/usr/bin/nvcc' failed with exit status 1

error: command '/usr/bin/nvcc' failed with exit status 1 Anyone please let me know how to solve this error? I used export TORCH_CUDA_ARCH_LIST="7.0" to solvenvcc fatal unsupported gpu architecture 'compute_75' error.

I'm using CUDA 9.2, Python 3.7.5, and PyTorch 1.0.1. My GPU is RTX 2080 Ti.

jizefeng0810 commented 4 years ago

I also have this error nvcc.exe' failed with exit status 2 I'm using cuda=9.0, python=3.6 and pytorch=1.0.1. My GPUs is RTX2070 and os is windows.

XY-boy commented 4 years ago

I also have this error nvcc.exe' failed with exit status 2 I'm using cuda=9.0, python=3.6 and pytorch=1.0.1. My GPUs is RTX2070 and os is windows.

I have the same problem, have you solve it ?

amoskalev commented 4 years ago

Hi, I got the same problem,

nvcc fatal : Unsupported gpu architecture 'compute_61' cuda=10.1, python=3.7.7 and pytorch=1.3.1 with Titan X gpu. OS is ubuntu 16.04.

Has anyone managed to solve this?

bohzio commented 4 years ago

me too /usr/include/c++/6/type_traits:1558:8: note: provided for ‘template<class _From, class _To> struct std::is_convertible’ struct is_convertible ^~~~~~ /usr/include/c++/6/tuple:502:1: error: body of constexpr function ‘static constexpr bool std::_TC<, _Elements>::_NonNestedTuple() [with _SrcTuple = std::tuple<at::Tensor&, at::Tensor&, at::Tensor&>&&; bool = true; _Elements = {at::Tensor&, at::Tensor&, at::Tensor&}]’ not a return-statement } ^ error: command u'/usr/bin/nvcc' failed with exit status 1

amoskalev commented 4 years ago

Okay, I reinstalled cuda and it seems to work now with cuda 10.2

downhiller commented 4 years ago

I'm having the same problem. CentOS 7, Cuda 11.0.228, python 4.6, PyTorch 1.6.0. Tried gcc 5.4.0 and 7.3.1

lwCVer commented 3 years ago

需要安装与cuda版本一致的pytorch