-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
TBB can be replaced with cv::parallel_for_ #241
Comments
Thanks for the suggestion, when I update the OpenCV version used I will consider using the cv::parallel for as that could be a bit more portable. |
any plans of implementing this yet? |
Not anytime soon, I will be moving to OpenCV 3.3 eventually and will explore using the OpenCV parallel option then. |
seems like opencv 3.4 is now supported...will you consider using the cv::parallel now? |
Definitely considering, it's on my list of things to explore, but I'm focusing on other features at the moment. |
For simplicity, you can straightly replace codes in Patch_experts.cpp.
|
Great thanks for the code but I think it is not enough...there are other files using tbb such as LandmarkDetectionValidator.cpp and FaceDetectorMTCNN.cpp |
@AntonLinderer Of course, and you can easily translate those codes by using cv::parallel_for_ . |
Explicit requirement on TBB has been removed, but it can still be used if OpenCV is compiled with it. |
There are multi-threads write on the global variable such as "patch_expert_responses" in the scope of cv::parallel_for_ even though not the same place but the same variable,which is allowed ? |
There is no true shared,what about the false shared or Ping Pang situation? |
The first precondition is to have OpenCV built with a parallel framework. In OpenCV 3.2, the following parallel frameworks are available in that order:
http://docs.opencv.org/trunk/d7/dff/tutorial_how_to_use_OpenCV_parallel_for_.html
The text was updated successfully, but these errors were encountered: