Opencv Can not Find opencv2/gpu/gpu.hpp [How to Solve]

Older versions.
opencv2/gpu/gpu.hpp
cv::gpu::sum(mat)
New version
#include “opencv2/core/cuda.hpp”
cv::cuda::sum(mat)


Read More: