Yes. You have to set CUDA_HOST_COMPILER
flag to /usr/bin/gcc-8
in cmake in order to correctly build OpenCV with CUDA support (otherwise nvcc
will exit with an error while building the CUDA modules).
2 Likes