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.
5 // Copyright (C) 2014, Advanced Micro Devices, Inc., all rights reserved.
6 // Third party copyrights are property of their respective owners.
8 #define CV_OPENCL_RUN_ASSERT
12 #ifdef CV_OPENCL_RUN_VERBOSE
13 #define CV_OCL_RUN_(condition, func, ...) \
15 if (cv::ocl::useOpenCL() && (condition) && func) \
17 printf("%s: OpenCL implementation is running\n", CV_Func); \
23 printf("%s: Plain implementation is running\n", CV_Func); \
27 #elif defined CV_OPENCL_RUN_ASSERT
28 #define CV_OCL_RUN_(condition, func, ...) \
30 if (cv::ocl::useOpenCL() && (condition)) \
37 #define CV_OCL_RUN_(condition, func, ...) \
38 if (cv::ocl::useOpenCL() && (condition) && func) \
43 #define CV_OCL_RUN_(condition, func, ...)
46 #define CV_OCL_RUN(condition, func) CV_OCL_RUN_(condition, func)