Skip to content

Commit

Permalink
Fix tbb for macos 22.2 (#12952)
Browse files Browse the repository at this point in the history
* Fixed build for TBB which uses pre-reliase functions

* Disable TBB only for macOS only

* Changed condition
  • Loading branch information
ilyachur committed Sep 7, 2022
1 parent e21b51a commit eb24795
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/inference/src/threading/ie_parallel_custom_arena.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,15 @@
# define TBBBIND_2_5_AVAILABLE 0
# endif

# define USE_TBBBIND_2_5 (TBBBIND_2_5_AVAILABLE && TBB_INTERFACE_VERSION < 12020)
# define TBB_NUMA_SUPPORT_PRESENT (TBB_INTERFACE_VERSION >= 11100)
# define TBB_HYBRID_CPUS_SUPPORT_PRESENT (TBB_INTERFACE_VERSION >= 12020)
# define USE_TBBBIND_2_5 (TBBBIND_2_5_AVAILABLE && TBB_INTERFACE_VERSION < 12020)
# define TBB_NUMA_SUPPORT_PRESENT (TBB_INTERFACE_VERSION >= 11100)
# if defined(__APPLE__)
// 2021.2 TBB doesn't export for macOS symbol:
// _ZN3tbb6detail2r131constraints_default_concurrencyERKNS0_2d111constraintsEl
# define TBB_HYBRID_CPUS_SUPPORT_PRESENT (TBB_INTERFACE_VERSION > 12020)
# else
# define TBB_HYBRID_CPUS_SUPPORT_PRESENT (TBB_INTERFACE_VERSION >= 12020)
# endif

# if defined(_WIN32) || defined(_WIN64)
# include <windows.h>
Expand Down

0 comments on commit eb24795

Please sign in to comment.