ocl: added runtime flags for debugging

This commit is contained in:
Alexander Alekhin
2014-06-19 15:18:52 +04:00
parent acebfcd24f
commit d9daa0cbaa
4 changed files with 59 additions and 10 deletions

View File

@@ -636,6 +636,9 @@ protected:
CV_EXPORTS MatAllocator* getOpenCLAllocator();
CV_EXPORTS_W bool isPerformanceCheckBypassed();
#define OCL_PERFORMANCE_CHECK(condition) (cv::ocl::isPerformanceCheckBypassed() || (condition))
}}
#endif