1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 15:23:05 +04:00

core, gapi: supported build with oneTBB 2021

This commit is contained in:
Maksim Shabunin
2021-01-24 04:12:40 +03:00
parent 900051cd04
commit 694fe3e7d2
6 changed files with 24 additions and 11 deletions
@@ -7,10 +7,14 @@
// Deliberately include .cpp file instead of header as we use non exported function (execute)
#include <executor/gtbbexecutor.cpp>
#if defined(HAVE_TBB)
#ifdef HAVE_TBB
#include <tbb/tbb.h>
#include <tbb/task.h>
#if TBB_INTERFACE_VERSION < 12000
#include <tbb/task_arena.h>
#include "../test_precomp.hpp"
#include <tbb/task_arena.h>
#include <thread>
namespace {
@@ -169,4 +173,6 @@ TEST(TBBExecutor, Dependencies) {
}
}
} // namespace opencv_test
#endif //TBB_INTERFACE_VERSION
#endif //HAVE_TBB