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,9 +60,12 @@ PERF_TEST_P(pyrDownFixture, pyrDown,
const Size_MatType_t params = GetParam();
const Size srcSize = get<0>(params);
const int type = get<1>(params);
Size dstSize((srcSize.height + 1) >> 1, (srcSize.width + 1) >> 1);
checkDeviceMaxMemoryAllocSize(srcSize, type);
checkDeviceMaxMemoryAllocSize(dstSize, type);
Mat src(srcSize, type), dst;
Size dstSize((srcSize.height + 1) >> 1, (srcSize.width + 1) >> 1);
dst.create(dstSize, type);
declare.in(src, WARMUP_RNG).out(dst);
@@ -97,9 +100,12 @@ PERF_TEST_P(pyrUpFixture, pyrUp,
const Size_MatType_t params = GetParam();
const Size srcSize = get<0>(params);
const int type = get<1>(params);
Size dstSize(srcSize.height << 1, srcSize.width << 1);
checkDeviceMaxMemoryAllocSize(srcSize, type);
checkDeviceMaxMemoryAllocSize(dstSize, type);
Mat src(srcSize, type), dst;
Size dstSize(srcSize.height << 1, srcSize.width << 1);
dst.create(dstSize, type);
declare.in(src, WARMUP_RNG).out(dst);