Skip to content

Commit

Permalink
Merge pull request opencv#2809 from ilya-lavrenov:tapi_copy_perf
Browse files Browse the repository at this point in the history
  • Loading branch information
alalek authored and OpenCV Buildbot committed May 31, 2014
2 parents 17d6083 + 80470f9 commit 89e4118
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions modules/core/perf/opencl/perf_matop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,29 @@ OCL_PERF_TEST_P(CopyToFixture, CopyToWithMask,
SANITY_CHECK(dst);
}

OCL_PERF_TEST_P(CopyToFixture, CopyToWithMaskUninit,
::testing::Combine(OCL_PERF_ENUM(OCL_SIZE_1, OCL_SIZE_2, OCL_SIZE_3), OCL_TEST_TYPES))
{
const Size_MatType_t params = GetParam();
const Size srcSize = get<0>(params);
const int type = get<1>(params);

checkDeviceMaxMemoryAllocSize(srcSize, type);

UMat src(srcSize, type), dst, mask(srcSize, CV_8UC1);
declare.in(src, mask, WARMUP_RNG);

for ( ; next(); )
{
dst.release();
startTimer();
src.copyTo(dst, mask);
stopTimer();
}

SANITY_CHECK(dst);
}

} } // namespace cvtest::ocl

#endif // HAVE_OPENCL

0 comments on commit 89e4118

Please sign in to comment.