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

GCC5 & CUDA v10.0 Compilation Error #124

Closed
chrischoy opened this issue Apr 10, 2020 · 4 comments
Closed

GCC5 & CUDA v10.0 Compilation Error #124

chrischoy opened this issue Apr 10, 2020 · 4 comments

Comments

@chrischoy
Copy link
Contributor

No description provided.

@chrischoy chrischoy changed the title GCC5 Compilation Error GCC5 Compilation Error with pytorch 1.3 Apr 10, 2020
@chrischoy chrischoy changed the title GCC5 Compilation Error with pytorch 1.3 GCC5 Compilation Error Apr 10, 2020
@chrischoy
Copy link
Contributor Author

chrischoy commented Apr 10, 2020

Compilation error with g++ (Ubuntu 5.4.0-6ubuntu1~16.04.10) 5.4.0 20160609

src/coords_manager.cu: In instantiation of ‘std::vector<std::vector<at::Tensor> > minkowski::CoordsManager<MapType>::getKernelMapGPU(std::vector<int, std::allocator<int> >, std::vector<int, std::allocator<int> >, std::vector<int, std::allocator<int> >, std::vector<int, std::allocator<int> >, int, at::Tensor, pybind1
1::object, pybind11::object, bool, bool) [with MapType = robin_hood::detail::Table<true, 80ul, std::vector<int, std::allocator<int> >, int, minkowski::byte_hash_vec<int>, std::equal_to<std::vector<int, std::allocator<int> > > >]’:                                                                                       
src/coords_manager.cu:195:16:   required from here                                                                                                                                                                                                                                                                          
src/coords_manager.cu:180:58: warning: ‘T* at::Tensor::data() const [with T = int]’ is deprecated: Tensor.data<T>() is deprecated. Please use Tensor.data_ptr<T>() instead. [-Wdeprecated-declarations]                                                                                                                     
/home/chrischoy/anaconda3/envs/py3-align-1.4/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:322:1: note: declared here                                                                                                                                                                                 
   T * data() const {                                                                                                                                                                                                                                                                                                       
 ^                                                                                                                                                                                                                                                                                                                          
src/coords_manager.cu:181:60: warning: ‘T* at::Tensor::data() const [with T = int]’ is deprecated: Tensor.data<T>() is deprecated. Please use Tensor.data_ptr<T>() instead. [-Wdeprecated-declarations]                                                                                                                     
/home/chrischoy/anaconda3/envs/py3-align-1.4/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:322:1: note: declared here                                                                                                                                                                                 
   T * data() const {                                                                                                                                                                                                                                                                                                       
 ^                                                                                                                                                                                                                                                                                                                          
/home/chrischoy/anaconda3/envs/py3-align-1.4/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::CrossMapLRN2dImpl]’:
/tmp/tmpxft_000085a1_00000000-5_coords_manager.compute_75.cudafe1.stub.c:21:27:   required from here                                                                                                                                                                                                                        
/home/chrischoy/anaconda3/envs/py3-align-1.4/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:44:65: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string<char>, at::Tensor>&’        
/home/chrischoy/anaconda3/envs/py3-align-1.4/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:56:59: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string<char>, at::Tensor>&’        
/home/chrischoy/anaconda3/envs/py3-align-1.4/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:68:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, std::shared_ptr<torch::nn::Module> >’ to type ‘torch::OrderedDict<std::basic_string<char
>, std::shared_ptr<torch::nn::Module> >&’ 

@chrischoy
Copy link
Contributor Author

chrischoy commented Apr 10, 2020

Compiles successfully on

  • gcc version 7.4.0 (Ubuntu 7.4.0-1ubuntu116.04ppa1)
  • g++-7 (Ubuntu 7.4.0-14ubuntu2) 7.4.0

CUDA 10.1

  • g++-8 (Ubuntu 8.3.0-23ubuntu2) 8.3.0
export CXX=g++-7; python setup.py install

@chrischoy
Copy link
Contributor Author

Update the GCC version requirement

@chrischoy
Copy link
Contributor Author

chrischoy commented Apr 18, 2020

g++-7 on ubuntu 16.04 CUDA 10.0 failed.
g++-7 on Ubuntu 19.10 CUDA V10.1.243 successful
g++-7 on Ubuntu 16.04.1 CUDA V10.2.89 successful

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

1 participant