test_cuda.cpp 506 B

123456789101112131415161718192021
  1. // This file is part of OpenCV project.
  2. // It is subject to the license terms in the LICENSE file found in the top-level directory
  3. // of this distribution and at http://opencv.org/license.html.
  4. #if defined(HAVE_CUDA)
  5. #include "test_precomp.hpp"
  6. #include <cuda_runtime.h>
  7. #include "opencv2/core/cuda.hpp"
  8. namespace opencv_test { namespace {
  9. TEST(CUDA_Stream, construct_cudaFlags)
  10. {
  11. cv::cuda::Stream stream(cudaStreamNonBlocking);
  12. EXPECT_NE(stream.cudaPtr(), nullptr);
  13. }
  14. }} // namespace
  15. #endif