You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was setting this up today and I had some issues building the cuda extensions when I use gcc8.1.0, however when I used gcc 6.1.0 I was able to build successfully.
@jlgao2
I have not tried gcc8. 1, maybe it's because of the compatible issue. I do not know how to resolve the error. Maybe this could provide some info: pytorch/vision#1893
Thanks for making this repository public!
I was setting this up today and I had some issues building the cuda extensions when I use gcc8.1.0, however when I used gcc 6.1.0 I was able to build successfully.
The error I received is shown below.
/usr/local/cuda/10.1/bin/nvcc -DWITH_CUDA -I/projects/qg35/jlgao2/venvs/lib/python3.7/site-packages/torch/include -I/projects/qg35/jlgao2/venvs/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/projects/qg35/jlgao2/venvs/lib/python3.7/site-packages/torch/include/TH -I/projects/qg35/jlgao2/venvs/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/10.1/include -I/projects/qg35/jlgao2/venvs/include -I/usr/local/python/3.7.3-system/include/python3.7m -c basicsr/models/ops/dcn/src/deform_conv_cuda_kernel.cu -o build/temp.linux-x86_64-3.7/basicsr/models/ops/dcn/src/deform_conv_cuda_kernel.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options '-fPIC' -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=deform_conv_ext -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_61,code=sm_61 -std=c++14 /usr/local/gcc/8.1.0/include/c++/8.1.0/bits/basic_string.tcc: In instantiation of 'static std::basic_string<_CharT, _Traits, _Alloc>::_Rep* std::basic_string<_CharT, _Traits, _Alloc>::_Rep::_S_create(std::basic_string<_CharT, _Traits, _Alloc>::size_type, std::basic_string<_CharT, _Traits, _Alloc>::size_type, const _Alloc&) [with _CharT = char16_t; _Traits = std::char_traits<char16_t>; _Alloc = std::allocator<char16_t>; std::basic_string<_CharT, _Traits, _Alloc>::size_type = long unsigned int]': /usr/local/gcc/8.1.0/include/c++/8.1.0/bits/basic_string.tcc:578:28: required from 'static _CharT* std::basic_string<_CharT, _Traits, _Alloc>::_S_construct(_InIterator, _InIterator, const _Alloc&, std::forward_iterator_tag) [with _FwdIterator = const char16_t*; _CharT = char16_t; _Traits = std::char_traits<char16_t>; _Alloc = std::allocator<char16_t>]' /usr/local/gcc/8.1.0/include/c++/8.1.0/bits/basic_string.h:5033:20: required from 'static _CharT* std::basic_string<_CharT, _Traits, _Alloc>::_S_construct_aux(_InIterator, _InIterator, const _Alloc&, std::__false_type) [with _InIterator = const char16_t*; _CharT = char16_t; _Traits = std::char_traits<char16_t>; _Alloc = std::allocator<char16_t>]' /usr/local/gcc/8.1.0/include/c++/8.1.0/bits/basic_string.h:5054:24: required from 'static _CharT* std::basic_string<_CharT, _Traits, _Alloc>::_S_construct(_InIterator, _InIterator, const _Alloc&) [with _InIterator = const char16_t*; _CharT = char16_t; _Traits = std::char_traits<char16_t>; _Alloc = std::allocator<char16_t>]' /usr/local/gcc/8.1.0/include/c++/8.1.0/bits/basic_string.tcc:656:134: required from 'std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, std::basic_string<_CharT, _Traits, _Alloc>::size_type, const _Alloc&) [with _CharT = char16_t; _Traits = std::char_traits<char16_t>; _Alloc = std::allocator<char16_t>; std::basic_string<_CharT, _Traits, _Alloc>::size_type = long unsigned int]' /usr/local/gcc/8.1.0/include/c++/8.1.0/bits/basic_string.h:6686:95: required from here /usr/local/gcc/8.1.0/include/c++/8.1.0/bits/basic_string.tcc:1067:1: error: cannot call member function 'void std::basic_string<_CharT, _Traits, _Alloc>::_Rep::_M_set_sharable() [with _CharT = char16_t; _Traits = std::char_traits<char16_t>; _Alloc = std::allocator<char16_t>]' without object __p->_M_set_sharable(); ^ ~~~~~~~~~ /usr/local/gcc/8.1.0/include/c++/8.1.0/bits/basic_string.tcc: In instantiation of 'static std::basic_string<_CharT, _Traits, _Alloc>::_Rep* std::basic_string<_CharT, _Traits, _Alloc>::_Rep::_S_create(std::basic_string<_CharT, _Traits, _Alloc>::size_type, std::basic_string<_CharT, _Traits, _Alloc>::size_type, const _Alloc&) [with _CharT = char32_t; _Traits = std::char_traits<char32_t>; _Alloc = std::allocator<char32_t>; std::basic_string<_CharT, _Traits, _Alloc>::size_type = long unsigned int]': /usr/local/gcc/8.1.0/include/c++/8.1.0/bits/basic_string.tcc:578:28: required from 'static _CharT* std::basic_string<_CharT, _Traits, _Alloc>::_S_construct(_InIterator, _InIterator, const _Alloc&, std::forward_iterator_tag) [with _FwdIterator = const char32_t*; _CharT = char32_t; _Traits = std::char_traits<char32_t>; _Alloc = std::allocator<char32_t>]' /usr/local/gcc/8.1.0/include/c++/8.1.0/bits/basic_string.h:5033:20: required from 'static _CharT* std::basic_string<_CharT, _Traits, _Alloc>::_S_construct_aux(_InIterator, _InIterator, const _Alloc&, std::__false_type) [with _InIterator = const char32_t*; _CharT = char32_t; _Traits = std::char_traits<char32_t>; _Alloc = std::allocator<char32_t>]' /usr/local/gcc/8.1.0/include/c++/8.1.0/bits/basic_string.h:5054:24: required from 'static _CharT* std::basic_string<_CharT, _Traits, _Alloc>::_S_construct(_InIterator, _InIterator, const _Alloc&) [with _InIterator = const char32_t*; _CharT = char32_t; _Traits = std::char_traits<char32_t>; _Alloc = std::allocator<char32_t>]' /usr/local/gcc/8.1.0/include/c++/8.1.0/bits/basic_string.tcc:656:134: required from 'std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, std::basic_string<_CharT, _Traits, _Alloc>::size_type, const _Alloc&) [with _CharT = char32_t; _Traits = std::char_traits<char32_t>; _Alloc = std::allocator<char32_t>; std::basic_string<_CharT, _Traits, _Alloc>::size_type = long unsigned int]' /usr/local/gcc/8.1.0/include/c++/8.1.0/bits/basic_string.h:6691:95: required from here /usr/local/gcc/8.1.0/include/c++/8.1.0/bits/basic_string.tcc:1067:1: error: cannot call member function 'void std::basic_string<_CharT, _Traits, _Alloc>::_Rep::_M_set_sharable() [with _CharT = char32_t; _Traits = std::char_traits<char32_t>; _Alloc = std::allocator<char32_t>]' without object error: command '/usr/local/cuda/10.1/bin/nvcc' failed with exit status 1
The text was updated successfully, but these errors were encountered: