GPU module performance tests are aligned with other OpenCV pefrofmance tests
This commit is contained in:
@@ -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 *
|
||||
|
Reference in New Issue
Block a user