mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 07:43:03 +04:00
fixed gpu performance tests:
used new CV_PERF_TEST_MAIN_WITH_IMPLS mechanism
This commit is contained in:
@@ -44,11 +44,4 @@
|
||||
|
||||
using namespace perf;
|
||||
|
||||
static const char * impls[] = {
|
||||
#ifdef HAVE_CUDA
|
||||
"cuda",
|
||||
#endif
|
||||
"plain"
|
||||
};
|
||||
|
||||
CV_PERF_TEST_MAIN_WITH_IMPLS(gpu, impls, printCudaInfo())
|
||||
CV_PERF_TEST_CUDA_MAIN(gpu)
|
||||
|
||||
@@ -52,16 +52,7 @@
|
||||
#include "opencv2/ts.hpp"
|
||||
#include "opencv2/ts/gpu_perf.hpp"
|
||||
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
perf::printCudaInfo();
|
||||
|
||||
perf::Regression::Init("gpu_perf4au");
|
||||
perf::TestBase::Init(argc, argv);
|
||||
testing::InitGoogleTest(&argc, argv);
|
||||
|
||||
return RUN_ALL_TESTS();
|
||||
}
|
||||
CV_PERF_TEST_CUDA_MAIN(gpu_perf4au)
|
||||
|
||||
//////////////////////////////////////////////////////////
|
||||
// HoughLinesP
|
||||
|
||||
Reference in New Issue
Block a user