apollo_perception_ros icon indicating copy to clipboard operation
apollo_perception_ros copied to clipboard

A probability issue relate with CUDA10

Open lucasjinreal opened this issue 6 years ago • 3 comments

I know cuda10 is new but since I am using tensorflow 2.0 apis so move on cuda10 is the eventually things, this codes now can not built on cuda10, it has this error:

apollo_perception_ros/src/cuda_util/util.cu(155): error: incomplete type is not allowed

this file, this line, and only 1 error. Does this can be fix for cuda10 compatible?

lucasjinreal avatar May 08 '19 08:05 lucasjinreal

Hello @jinfagang , I haven't tried cuda 10, but I have doubts about it since the static models that come with apollo might not be easily adjusted to a newer version of cuda.

cedricxie avatar Jun 09 '19 03:06 cedricxie

I know cuda10 is new but since I am using tensorflow 2.0 apis so move on cuda10 is the eventually things, this codes now can not built on cuda10, it has this error:

apollo_perception_ros/src/cuda_util/util.cu(155): error: incomplete type is not allowed

this file, this line, and only 1 error. Does this can be fix for cuda10 compatible?

I met the same issue with CUDA10, and I solve this issue by adding below into util.cu,

#include <opencv2/core/core.hpp> #include <opencv2/opencv.hpp>

Hopefully, you problem could be solved as well.

CodingSmith avatar Jun 26 '20 15:06 CodingSmith

@CodingSmith @jinfagang I met the same error too, and the error was indeed related to OpenCV. After including the heading files of opencv, the error would no more occurs.

liuqf0425 avatar Jul 08 '21 08:07 liuqf0425