From: Vladislav Vinogradov Date: Tue, 27 Nov 2012 14:43:17 +0000 (+0400) Subject: fixed build without CUDA X-Git-Tag: accepted/tizen/6.0/unified/20201030.111113~4052^2~55 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0b2c1dc871d0a9f1fd439d949780edf749de33cd;p=platform%2Fupstream%2Fopencv.git fixed build without CUDA --- diff --git a/modules/gpu/perf/perf_softcascade.cpp b/modules/gpu/perf/perf_softcascade.cpp index ae816bc..b4091d0 100644 --- a/modules/gpu/perf/perf_softcascade.cpp +++ b/modules/gpu/perf/perf_softcascade.cpp @@ -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)