mirror of
https://github.com/opencv/opencv.git
synced 2024-11-30 22:40:17 +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
11 lines
309 B
C++
11 lines
309 B
C++
// This file is part of OpenCV project.
|
|
// It is subject to the license terms in the LICENSE file found in the top-level directory
|
|
// of this distribution and at http://opencv.org/license.html.
|
|
#include "test_precomp.hpp"
|
|
|
|
#if defined(HAVE_HPX)
|
|
#include <hpx/hpx_main.hpp>
|
|
#endif
|
|
|
|
CV_TEST_MAIN("highgui")
|