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

@@ -63,6 +63,10 @@ PERF_TEST_P(ConvertToFixture, ConvertTo,
Mat src(srcSize, type), dst;
const int dstType = CV_MAKE_TYPE(CV_32F, src.channels());
checkDeviceMaxMemoryAllocSize(srcSize, type);
checkDeviceMaxMemoryAllocSize(srcSize, dstType);
dst.create(srcSize, dstType);
declare.in(src, WARMUP_RNG).out(dst);