remove tbb version check for using tbbbind static library (#15627)
* remove tbb version check for using tbbbind static library * fix build error --------- Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
This commit is contained in:
parent
831b637fbe
commit
62dd3c5218
@ -1,9 +1,10 @@
|
||||
// Copyright (C) 2018-2023 Intel Corporation
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
//
|
||||
|
||||
#include "ie_parallel_custom_arena.hpp"
|
||||
|
||||
#include <cstring>
|
||||
|
||||
#include "itt.hpp"
|
||||
|
||||
#if IE_THREAD == IE_THREAD_TBB || IE_THREAD == IE_THREAD_TBB_AUTO
|
||||
@ -12,7 +13,14 @@
|
||||
# define TBBBIND_2_5_AVAILABLE 0
|
||||
# endif
|
||||
|
||||
# define USE_TBBBIND_2_5 (TBBBIND_2_5_AVAILABLE && TBB_INTERFACE_VERSION < 12020)
|
||||
// On Ubuntu22.04, system tbb is 2021.5 oneTBB and tbbbind dynamic library doesn't exist.
|
||||
// In this case, tbbbind static library is needed.
|
||||
# define USE_TBBBIND_2_5 TBBBIND_2_5_AVAILABLE
|
||||
# if USE_TBBBIND_2_5
|
||||
# pragma message("USE_TBBBIND_2_5 is enabled")
|
||||
# else
|
||||
# pragma message("USE_TBBBIND_2_5 is disabled")
|
||||
# endif
|
||||
# define TBB_NUMA_SUPPORT_PRESENT (TBB_INTERFACE_VERSION >= 11100)
|
||||
# if defined(__APPLE__)
|
||||
// 2021.2 TBB doesn't export for macOS symbol:
|
||||
|
Loading…
Reference in New Issue
Block a user