used new device layer for cv::gpu::reduce