DCNv2 icon indicating copy to clipboard operation
DCNv2 copied to clipboard

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

Open itsss opened this issue 6 years ago • 7 comments

$ ./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.

itsss avatar Mar 07 '20 14:03 itsss

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.

jizefeng0810 avatar Mar 09 '20 01:03 jizefeng0810

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 ?

XY-boy avatar Mar 18 '20 05:03 XY-boy

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?

amoskalev avatar May 08 '20 19:05 amoskalev

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

bohzio avatar May 09 '20 17:05 bohzio

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

amoskalev avatar May 09 '20 19:05 amoskalev

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

downhiller avatar Aug 18 '20 15:08 downhiller

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

lwCVer avatar Nov 19 '21 08:11 lwCVer