appended ocl::finish to test_cycle defines

This commit is contained in:
ilya-lavrenov
2013-08-27 18:46:30 +04:00
committed by Ilya Lavrenov
parent 525b6eca2e
commit 3c86aa4ae1
21 changed files with 74 additions and 70 deletions

View File

@@ -102,4 +102,8 @@ using namespace cv;
CV_TEST_FAIL_NO_IMPL();
#endif
#define OCL_TEST_CYCLE_N(n) for(declare.iterations(n); startTimer(), next(); ocl::finish(), stopTimer())
#define OCL_TEST_CYCLE() for(; startTimer(), next(); ocl::finish(), stopTimer())
#define OCL_TEST_CYCLE_MULTIRUN(runsNum) for(declare.runs(runsNum); startTimer(), next(); stopTimer()) for(int r = 0; r < runsNum; ocl::finish(), ++r)
#endif