mirror of
https://github.com/opencv/opencv.git
synced 2024-12-16 02:19:12 +08:00
9f1218b00b
* 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 backend
17 lines
326 B
C++
17 lines
326 B
C++
#include "perf_precomp.hpp"
|
|
|
|
static const char* extraTestDataPath =
|
|
#ifdef WINRT
|
|
NULL;
|
|
#else
|
|
getenv("OPENCV_DNN_TEST_DATA_PATH");
|
|
#endif
|
|
|
|
#if defined(HAVE_HPX)
|
|
#include <hpx/hpx_main.hpp>
|
|
#endif
|
|
|
|
CV_PERF_TEST_MAIN(dnn,
|
|
extraTestDataPath ? (void)cvtest::addDataSearchPath(extraTestDataPath) : (void)0
|
|
)
|