mirror of https://github.com/opencv/opencv.git
Merge pull request #11897 from Jakub-Golinowski:hpx_backend
* Add HPX backend for OpenCV implementation Adds hpx backend for cv::parallel_for_() calls respecting the nstripes chunking parameter. C++ code for the backend is added to modules/core/parallel.cpp. Also, the necessary changes to cmake files are introduced. Backend can operate in 2 versions (selectable by cmake build option WITH_HPX_STARTSTOP): hpx (runtime always on) and hpx_startstop (start and stop the backend for each cv::parallel_for_() call) * WIP: Conditionally include hpx_main.hpp to tests in core module Header hpx_main.hpp is included to both core/perf/perf_main.cpp and core/test/test_main.cpp. The changes to cmake files for linking hpx library to above mentioned test executalbles are proposed but have issues. * Add coditional iclusion of hpx_main.hpp to cpp cpu modules * Remove start/stop version of hpx backendpull/12372/head
parent
90f47eb952
commit
9f1218b00b
35 changed files with 188 additions and 0 deletions
@ -1,3 +1,7 @@ |
|||||||
#include "perf_precomp.hpp" |
#include "perf_precomp.hpp" |
||||||
|
|
||||||
|
#if defined(HAVE_HPX) |
||||||
|
#include <hpx/hpx_main.hpp> |
||||||
|
#endif |
||||||
|
|
||||||
CV_PERF_TEST_MAIN(calib3d) |
CV_PERF_TEST_MAIN(calib3d) |
||||||
|
@ -1,3 +1,7 @@ |
|||||||
#include "perf_precomp.hpp" |
#include "perf_precomp.hpp" |
||||||
|
|
||||||
|
#if defined(HAVE_HPX) |
||||||
|
#include <hpx/hpx_main.hpp> |
||||||
|
#endif |
||||||
|
|
||||||
CV_PERF_TEST_MAIN(features2d) |
CV_PERF_TEST_MAIN(features2d) |
||||||
|
@ -1,3 +1,7 @@ |
|||||||
#include "test_precomp.hpp" |
#include "test_precomp.hpp" |
||||||
|
|
||||||
|
#if defined(HAVE_HPX) |
||||||
|
#include <hpx/hpx_main.hpp> |
||||||
|
#endif |
||||||
|
|
||||||
CV_TEST_MAIN("cv") |
CV_TEST_MAIN("cv") |
||||||
|
@ -1,3 +1,7 @@ |
|||||||
#include "perf_precomp.hpp" |
#include "perf_precomp.hpp" |
||||||
|
|
||||||
|
#if defined(HAVE_HPX) |
||||||
|
#include <hpx/hpx_main.hpp> |
||||||
|
#endif |
||||||
|
|
||||||
CV_PERF_TEST_MAIN(objdetect) |
CV_PERF_TEST_MAIN(objdetect) |
||||||
|
@ -1,3 +1,7 @@ |
|||||||
#include "perf_precomp.hpp" |
#include "perf_precomp.hpp" |
||||||
|
|
||||||
|
#if defined(HAVE_HPX) |
||||||
|
#include <hpx/hpx_main.hpp> |
||||||
|
#endif |
||||||
|
|
||||||
CV_PERF_TEST_MAIN(stitching) |
CV_PERF_TEST_MAIN(stitching) |
||||||
|
@ -1,3 +1,7 @@ |
|||||||
#include "perf_precomp.hpp" |
#include "perf_precomp.hpp" |
||||||
|
|
||||||
|
#if defined(HAVE_HPX) |
||||||
|
#include <hpx/hpx_main.hpp> |
||||||
|
#endif |
||||||
|
|
||||||
CV_PERF_TEST_MAIN(video) |
CV_PERF_TEST_MAIN(video) |
||||||
|
Loading…
Reference in new issue