mirror of
https://github.com/opencv/opencv.git
synced 2025-08-06 14:36:36 +08:00
fixed build without CUDA
This commit is contained in:
parent
d2591704e8
commit
0b2c1dc871
@ -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_CPU(SCascadeTest, detectStream)
|
||||
|
Loading…
Reference in New Issue
Block a user