fixed build without CUDA
authorVladislav Vinogradov <vlad.vinogradov@itseez.com>
Tue, 27 Nov 2012 14:43:17 +0000 (18:43 +0400)
committerVladislav Vinogradov <vlad.vinogradov@itseez.com>
Tue, 27 Nov 2012 14:43:17 +0000 (18:43 +0400)
modules/gpu/perf/perf_softcascade.cpp

index ae816bc..b4091d0 100644 (file)
@@ -284,9 +284,11 @@ RUN_GPU(SCascadeTest, detectStream)
         cascade.detect(colored, trois, objectBoxes, s);
     }
 
+#ifdef HAVE_CUDA
     cudaDeviceSynchronize();
+#endif
 
     SANITY_CHECK(sortDetections(objectBoxes));
 }
 
-NO_CPU(SCascadeTest, detectStream)
\ No newline at end of file
+NO_CPU(SCascadeTest, detectStream)