Commit 0b2c1dc8 authored by Vladislav Vinogradov's avatar Vladislav Vinogradov

fixed build without CUDA

parent d2591704
...@@ -284,9 +284,11 @@ RUN_GPU(SCascadeTest, detectStream) ...@@ -284,9 +284,11 @@ RUN_GPU(SCascadeTest, detectStream)
cascade.detect(colored, trois, objectBoxes, s); cascade.detect(colored, trois, objectBoxes, s);
} }
#ifdef HAVE_CUDA
cudaDeviceSynchronize(); cudaDeviceSynchronize();
#endif
SANITY_CHECK(sortDetections(objectBoxes)); SANITY_CHECK(sortDetections(objectBoxes));
} }
NO_CPU(SCascadeTest, detectStream) NO_CPU(SCascadeTest, detectStream)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment