1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 07:43:03 +04:00

GPU module performance tests are aligned with other OpenCV pefrofmance tests

This commit is contained in:
marina.kolpakova
2012-10-10 01:34:21 +04:00
parent 10f1004465
commit f5d6367ea1
5 changed files with 53 additions and 71 deletions
+13
View File
@@ -205,6 +205,19 @@ private:
#define SANITY_CHECK_KEYPOINTS(array, ...) ::perf::Regression::addKeypoints(this, #array, array , ## __VA_ARGS__)
#define SANITY_CHECK_MATCHES(array, ...) ::perf::Regression::addMatches(this, #array, array , ## __VA_ARGS__)
#ifdef HAVE_CUDA
//#error "CUDA"
class CV_EXPORTS GpuPerf
{
public:
static bool targetDevice();
};
# define PERF_RUN_GPU() ::perf::GpuPerf::targetDevice()
#else
# define PERF_RUN_GPU()
#endif
/*****************************************************************************************\
* Container for performance metrics *