PlanarSLAM icon indicating copy to clipboard operation
PlanarSLAM copied to clipboard

compilation: cuda_runtime.h: no sich file

Open hewanghw opened this issue 3 years ago • 6 comments

QQ图片2021

您好,请问在编译时为什么会出现这种fatal error呢,不是没有用到GPU吗?如果我在CMakeLists中添加了cuda_runtime.h的路径后,编译就会卡住,请问这是什么原因呢?感谢解答。

hewanghw avatar Aug 15 '21 06:08 hewanghw

Hi, yes, the system does not require a GPU. Can you run ORB-SLAM2 on your machine? There seems to be some problems with Pangolin installation?

yanyan-li avatar Aug 21 '21 16:08 yanyan-li

I can run ORB-SLAM2 normally.But when I compile PlanarSLAM, my computer will get stuck.

hewanghw avatar Aug 21 '21 17:08 hewanghw

I can run ORB-SLAM2 normally.But when I compile PlanarSLAM, my computer will get stuck.

ok, then it's wired to see an issue in pangolin. Compared with ORBSLAM2, our system has similar functions in terms of pangolin use. Maybe you can try to comment new added pangolin functions to find the real conflicts between libs?

yanyan-li avatar Aug 21 '21 19:08 yanyan-li

Hi, I found the solution to this problem! Line 53 in the “/usr/local/include/pangolin/image/memcpy.h” file calls "return attributes.memoryType == cudaMemoryTypeDevice;". And the member variable "memoryType" has been changed to "type" in CUDA11.0 and above, therefore, modify "attributes" in this file .memoryType" is "attributes.type". Refer to the modification in “https://github.com/ROCm-Developer-Tools/HIP/blob/rocm-3.8.x/include/hip/nvcc_detail/hip_runtime_api.h#L1366”.

red0orange avatar Apr 06 '22 09:04 red0orange

The Pangolin version should be v0.6. If you built the version with PCL and CUDA, please try change all the HAVE_CUDA in pangolin:

cd Pangolin
grep -rl HAVE_CUDA ./ | xargs sed -i s@HAVE_CUDA@HAVE_CUDA_PANGOLIN@g
# output replace result
grep -rnw "./" -e "HAVE_CUDA_PANGOLIN"

rancheng avatar May 25 '22 14:05 rancheng

Hey! You can try to use our docker image.

vnmsklnk avatar Jul 14 '22 08:07 vnmsklnk