diff --git a/modules/ocl/perf/perf_matrix_operation.cpp b/modules/ocl/perf/perf_matrix_operation.cpp index b2d9a7ef10..f2baa7ffc5 100644 --- a/modules/ocl/perf/perf_matrix_operation.cpp +++ b/modules/ocl/perf/perf_matrix_operation.cpp @@ -156,6 +156,8 @@ PERF_TEST_P(setToFixture, setTo, OCL_PERF_ELSE } +#if 0 + /////////////////// upload /////////////////////////// typedef tuple uploadParams; @@ -228,3 +230,5 @@ PERF_TEST_P(downloadFixture, download, SANITY_CHECK_NOTHING(); } + +#endif diff --git a/modules/ocl/src/arithm.cpp b/modules/ocl/src/arithm.cpp index ea2eff63fc..9b24b16b0b 100644 --- a/modules/ocl/src/arithm.cpp +++ b/modules/ocl/src/arithm.cpp @@ -688,7 +688,7 @@ double cv::ocl::norm(const oclMat &src1, const oclMat &src2, int normType) break; } if (isRelative) - r = r / norm(src2, normType); + r = r / (norm(src2, normType) + DBL_EPSILON); return r; }