-
-
Notifications
You must be signed in to change notification settings - Fork 55.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
parallel_for_ flagNestedParallelFor cause multi task in difference thread may not parallel #25556
Comments
@opencv-alalek could you take a look? |
It is not a bug. Parallel for is designed to work in this way. Nested parallel for does not lead to better performance. See #25260 (comment). |
This design is flawed, resulting in external non-nested calls that probabilistically cannot be concurrent. And for multi-threaded calls to a function that uses parral_for, this scheme may be invalidated
|
System Information
opencv 4.9
Detailed description
When multiple threads are using cv::resize, the cv::resize of some threads cannot be fall into parallel for
Steps to reproduce
Issue submission checklist
The text was updated successfully, but these errors were encountered: