From cd81a13d8b74bdb6236175c6918b42882bc3ee6c Mon Sep 17 00:00:00 2001 From: Marina Kolpakova Date: Fri, 15 Jun 2012 13:19:36 +0000 Subject: [PATCH] added check for CUDA BLUS support in GEMM tests --- modules/gpu/perf/perf_core.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/gpu/perf/perf_core.cpp b/modules/gpu/perf/perf_core.cpp index cbe714844..f41343204 100644 --- a/modules/gpu/perf/perf_core.cpp +++ b/modules/gpu/perf/perf_core.cpp @@ -1149,6 +1149,7 @@ INSTANTIATE_TEST_CASE_P(Core, AddWeighted, testing::Combine( ////////////////////////////////////////////////////////////////////// // GEMM +#ifdef HAVE_CUBLAS CV_FLAGS(GemmFlags, 0, cv::GEMM_1_T, cv::GEMM_2_T, cv::GEMM_3_T) #define ALL_GEMM_FLAGS testing::Values(GemmFlags(0), GemmFlags(cv::GEMM_1_T), GemmFlags(cv::GEMM_2_T), GemmFlags(cv::GEMM_3_T), GemmFlags(cv::GEMM_1_T | cv::GEMM_2_T), GemmFlags(cv::GEMM_1_T | cv::GEMM_3_T), GemmFlags(cv::GEMM_1_T | cv::GEMM_2_T | cv::GEMM_3_T)) @@ -1192,6 +1193,7 @@ INSTANTIATE_TEST_CASE_P(Core, GEMM, testing::Combine( testing::Values(CV_32FC1, CV_32FC2, CV_64FC1, CV_64FC2), ALL_GEMM_FLAGS)); +#endif ////////////////////////////////////////////////////////////////////// // Transpose