ocl: perf tests: skip tests if we fail check for maxMemoryAllocSize

This commit is contained in:
Alexander Alekhin
2013-11-12 18:59:43 +04:00
parent f1873bbca1
commit fb326a58fc
7 changed files with 69 additions and 8 deletions

View File

@@ -60,8 +60,10 @@ PERF_TEST_P(MergeFixture, Merge,
const Size_MatType_t params = GetParam();
const Size srcSize = get<0>(params);
const int depth = get<1>(params), channels = 3;
const int dstType = CV_MAKE_TYPE(depth, channels);
checkDeviceMaxMemoryAllocSize(srcSize, dstType);
Mat dst(srcSize, dstType);
vector<Mat> src(channels);
for (vector<Mat>::iterator i = src.begin(), end = src.end(); i != end; ++i)
@@ -105,8 +107,11 @@ PERF_TEST_P(SplitFixture, Split,
const Size_MatType_t params = GetParam();
const Size srcSize = get<0>(params);
const int depth = get<1>(params), channels = 3;
const int type = CV_MAKE_TYPE(depth, channels);
Mat src(srcSize, CV_MAKE_TYPE(depth, channels));
checkDeviceMaxMemoryAllocSize(srcSize, type);
Mat src(srcSize, type);
declare.in(src, WARMUP_RNG);
if (RUN_OCL_IMPL)