以下是找到的代码
1 cv::cuda::Stream stream; 2 cudaStream_t s = cv::cuda::StreamAccessor::getStream(stream); 3 kernel_func<<<16, 64, 0, s>>>();
以下是找到的代码
1 cv::cuda::Stream stream; 2 cudaStream_t s = cv::cuda::StreamAccessor::getStream(stream); 3 kernel_func<<<16, 64, 0, s>>>();