From dfd29578415ff9928ec43bc36aae054e37d33006 Mon Sep 17 00:00:00 2001 From: Vladislav Vinogradov Date: Fri, 26 Jul 2013 11:13:39 +0400 Subject: [PATCH] fixed gpu_perf4au perf test (added cuda impl) --- modules/gpu/perf4au/main.cpp | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/modules/gpu/perf4au/main.cpp b/modules/gpu/perf4au/main.cpp index f6a65ad636..6d23a3db1b 100644 --- a/modules/gpu/perf4au/main.cpp +++ b/modules/gpu/perf4au/main.cpp @@ -55,16 +55,12 @@ #include "opencv2/video/video.hpp" #include "opencv2/legacy/legacy.hpp" -int main(int argc, char* argv[]) -{ - perf::printCudaInfo(); +static const char * impls[] = { + "cuda", + "plain" +}; - perf::Regression::Init("gpu_perf4au"); - perf::TestBase::Init(argc, argv); - testing::InitGoogleTest(&argc, argv); - - return RUN_ALL_TESTS(); -} +CV_PERF_TEST_MAIN_WITH_IMPLS(gpu_perf4au, impls, perf::printCudaInfo()) ////////////////////////////////////////////////////////// // HoughLinesP