compilation error with opencv/...gpu/gpu-thrust-interop/ code

asked 2018-10-14 13:12:38 -0600

shome gravatar image

I get compilation error if I try to compile the opencv sample of gpu-thrust_interop at opencv_samples

My platform opencv-3.1.0 cuda-8.0 thrust-1.8

the errors are as below:

    /home/krr/temp_codes/opencv/gpu/thrust/copy_gpumat_iterator_opencv_ver2/src/Thrust_interop.hpp(42): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator)

/home/krr/temp_codes/opencv/gpu/thrust/copy_gpumat_iterator_opencv_ver2/src/Thrust_interop.hpp(62): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator)

/home/krr/temp_codes/opencv/gpu/thrust/copy_gpumat_iterator_opencv_ver2/src/main.cu(49): error: explicit type is missing ("int" assumed)

/home/krr/temp_codes/opencv/gpu/thrust/copy_gpumat_iterator_opencv_ver2/src/main.cu(50): error: explicit type is missing ("int" assumed)

/home/krr/temp_codes/opencv/gpu/thrust/copy_gpumat_iterator_opencv_ver2/src/main.cu(52): error: explicit type is missing ("int" assumed)

/home/krr/temp_codes/opencv/gpu/thrust/copy_gpumat_iterator_opencv_ver2/src/main.cu(53): error: explicit type is missing ("int" assumed)

/home/krr/temp_codes/opencv/gpu/thrust/copy_gpumat_iterator_opencv_ver2/src/main.cu(69): error: explicit type is missing ("int" assumed)

/home/krr/temp_codes/opencv/gpu/thrust/copy_gpumat_iterator_opencv_ver2/src/main.cu(70): error: explicit type is missing ("int" assumed)

/home/krr/temp_codes/opencv/gpu/thrust/copy_gpumat_iterator_opencv_ver2/src/main.cu(83): error: explicit type is missing ("int" assumed)

/home/krr/temp_codes/opencv/gpu/thrust/copy_gpumat_iterator_opencv_ver2/src/main.cu(92): error: explicit type is missing ("int" assumed)

/home/krr/temp_codes/opencv/gpu/thrust/copy_gpumat_iterator_opencv_ver2/src/main.cu(93): error: explicit type is missing ("int" assumed)

/usr/local/cuda/include/thrust/iterator/iterator_traits.h(45): error: name followed by "::" must be a class or namespace name
          detected during instantiation of class "thrust::iterator_traits<T> [with T=int]" 
/home/krr/temp_codes/opencv/gpu/thrust/copy_gpumat_iterator_opencv_ver2/src/main.cu(100): here

/usr/local/cuda/include/thrust/iterator/iterator_traits.h(46): error: name followed by "::" must be a class or namespace name
          detected during instantiation of class "thrust::iterator_traits<T> [with T=int]" 
/home/krr/temp_codes/opencv/gpu/thrust/copy_gpumat_iterator_opencv_ver2/src/main.cu(100): here

/usr/local/cuda/include/thrust/iterator/iterator_traits.h(47): error: name followed by "::" must be a class or namespace name
          detected during instantiation of class "thrust::iterator_traits<T> [with T=int]" 
/home/krr/temp_codes/opencv/gpu/thrust/copy_gpumat_iterator_opencv_ver2/src/main.cu(100): here

/usr/local/cuda/include/thrust/iterator/iterator_traits.h(48): error: name followed by "::" must be a class or namespace name
          detected during instantiation of class "thrust::iterator_traits<T> [with T=int]" 
/home/krr/temp_codes/opencv/gpu/thrust/copy_gpumat_iterator_opencv_ver2/src/main.cu(100): here

/usr/local/cuda/include/thrust/iterator/iterator_traits.h(49): error: name followed by "::" must be a class or namespace name
          detected during instantiation of class "thrust::iterator_traits<T> [with T=int]" 
/home/krr/temp_codes/opencv/gpu/thrust/copy_gpumat_iterator_opencv_ver2/src/main.cu(100): here

/home/krr/temp_codes/opencv/gpu/thrust/copy_gpumat_iterator_opencv_ver2/src/main.cu(119): error: invalid redeclaration of type name "prg"
(9): here

/home/krr/temp_codes/opencv/gpu/thrust/copy_gpumat_iterator_opencv_ver2/src/main.cu(139): error: class template "pred_greater" has already been defined

/home ...
(more)
edit retag flag offensive close merge delete