|
OpenCV453
|
クラス | |
| class | cv::parallel::openmp::ParallelForBackend |
| class | cv::parallel::tbb::ParallelForBackend |
| class | cv::parallel::ParallelForAPI |
関数 | |
| CV_EXPORTS void | cv::parallel::setParallelForBackend (const std::shared_ptr< ParallelForAPI > &api, bool propagateNumThreads=true) |
| Replace OpenCV parallel_for backend [詳解] | |
| CV_EXPORTS_W bool | cv::parallel::setParallelForBackend (const std::string &backendName, bool propagateNumThreads=true) |
| Change OpenCV parallel_for backend [詳解] | |
API below is provided to resolve problem of CPU resource over-subscription by multiple thread pools from different multi-threading frameworks. This is common problem for cases when OpenCV compiled threading framework is different from the Users Applications framework.
Applications can replace OpenCV parallel_for() backend with own implementation (to reuse Application's thread pool).
Runtime configuration options:
OPENCV_PARALLEL_PRIORITY_<backend>=9999OPENCV_PARALLEL_PRIORITY_<backend>=0OPENCV_PARALLEL_PRIORITY_LIST=TBB,OPENMP. Unknown backends are registered as new plugins. | CV_EXPORTS void cv::parallel::setParallelForBackend | ( | const std::shared_ptr< ParallelForAPI > & | api, |
| bool | propagateNumThreads = true |
||
| ) |
Replace OpenCV parallel_for backend
Application can replace OpenCV parallel_for() backend with own implementation.
main() before any other OpenCV processing functions (and without any other created threads). | CV_EXPORTS_W bool cv::parallel::setParallelForBackend | ( | const std::string & | backendName, |
| bool | propagateNumThreads = true |
||
| ) |
Change OpenCV parallel_for backend
main() before any other OpenCV processing functions (and without any other created threads).