Closed Gpetrak closed 2 years ago
Finally I managed to solve the issue. It was an error related with the C++ version. At first, I added the following lines in the beginning of the CMakeLists.txt file: set(CMAKE_CXX_STANDARD 14) set(CMAKE_CXX_STANDARD_REQUIRED ON)
and then from the same file, I replaced the line: set_property(TARGET rgbd_gcn PROPERTY CXX_STANDARD 11) to set_property(TARGET rgbd_gcn PROPERTY CXX_STANDARD 14)
The answer of @JohnsonLC from https://github.com/jiexiong2016/GCNv2_SLAM/issues/47 was quite helpful.
My setup: Pytorch: 1.9.0 Cuda 10.2 Cudnn 8.2.2
I'm trying to build GCNv2_SLAM with Cuda 10.2 and Cudnn 8.2.2 with Pytorch 1.9.0. Unfortunately, although Pytorch is built with success, when I'm trying to build GCNv2_SLAM, it raises too many errors. I think that it is a mismatch in Cuda versions / Pytorch / GCNv2_SLAM because when I compile GCNv2_SLAM with Pytorch 1.0.1 without CUDA, it is built successfully.
Some text from the errors is the following: /home/gpetr/gcn2/pytorch/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:89:59: error: could not convert ‘c10::nullopt’ from ‘const c10::nullopt_t’ to ‘c10::optional’
bias = this->register_parameter("bias", torch::empty({options.out_channels()}));