Disabled the cuda variant when CUDA is not available.

pull/1030/head
Roman Donchenko 12 years ago
parent 7a104d2793
commit 51a672ec40
  1. 6
      modules/gpu/perf/perf_main.cpp
  2. 6
      modules/nonfree/perf/perf_main.cpp
  3. 6
      modules/superres/perf/perf_main.cpp

@ -44,4 +44,8 @@
using namespace perf;
CV_PERF_TEST_MAIN_WITH_IMPLS(gpu, ("cuda", "plain"), printCudaInfo())
CV_PERF_TEST_MAIN_WITH_IMPLS(gpu, (
#ifdef HAVE_CUDA
"cuda",
#endif
"plain"), printCudaInfo())

@ -1,4 +1,8 @@
#include "perf_precomp.hpp"
#include "opencv2/ts/gpu_perf.hpp"
CV_PERF_TEST_MAIN_WITH_IMPLS(nonfree, ("cuda", "plain"), perf::printCudaInfo())
CV_PERF_TEST_MAIN_WITH_IMPLS(nonfree, (
#ifdef HAVE_CUDA
"cuda",
#endif
"plain"), perf::printCudaInfo())

@ -44,4 +44,8 @@
using namespace perf;
CV_PERF_TEST_MAIN_WITH_IMPLS(superres, ("cuda", "plain"), printCudaInfo())
CV_PERF_TEST_MAIN_WITH_IMPLS(superres, (
#ifdef HAVE_CUDA
"cuda",
#endif
"plain"), printCudaInfo())

Loading…
Cancel
Save