Skip to content

Commit

Permalink
update oneTBB2021.13.0 on linux/mac (openvinotoolkit#26040)
Browse files Browse the repository at this point in the history
### Details:
- *update oneTBB 2021.13.0
(https://github.com/oneapi-src/oneTBB/releases/tag/v2021.13.0) for
linux/mac*
 - *remove debug files for linux and mac (arm64)*

### Tickets:
 - *147579*
 - *143793*
  • Loading branch information
xufang-lisa authored Aug 14, 2024
1 parent 25eac04 commit e0e5612
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
16 changes: 8 additions & 8 deletions cmake/dependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,10 @@ function(ov_download_tbb)
elseif(LINUX AND X86_64 AND OPENVINO_GNU_LIBC AND OV_LIBC_VERSION VERSION_GREATER_EQUAL 2.17)
# build oneTBB 2021.2.1 with gcc 4.8 (glibc 2.17)
RESOLVE_DEPENDENCY(TBB
ARCHIVE_LIN "oneapi-tbb-2021.2.4-lin.tgz"
ARCHIVE_LIN "oneapi-tbb-2021.13.0-lin-release.tgz"
TARGET_PATH "${TEMP}/tbb"
ENVIRONMENT "TBBROOT"
SHA256 "6523661559a340e88131472ea9a595582c306af083e55293b7357d11b8015546"
SHA256 "fd2e889323cd5458be750eefdc026ce6791c723fae60b146c2511a5caeaf01c5"
USE_NEW_LOCATION TRUE)
elseif(YOCTO_AARCH64)
RESOLVE_DEPENDENCY(TBB
Expand All @@ -132,10 +132,10 @@ function(ov_download_tbb)
elseif(APPLE AND X86_64)
# build oneTBB 2021.2.1 with OS version 11.4
RESOLVE_DEPENDENCY(TBB
ARCHIVE_MAC "oneapi-tbb-2021.2.5-mac-trim.tgz"
ARCHIVE_MAC "oneapi-tbb-2021.13.0-mac.tgz"
TARGET_PATH "${TEMP}/tbb"
ENVIRONMENT "TBBROOT"
SHA256 "5a6035fcf7b9d3bd8183ecc31b3e2b2026a749152b5b879f8e4d147e09479efc"
SHA256 "86e07127bfead5c4aad456c765de845013502342bda33d249d8097ed57afe945"
USE_NEW_LOCATION TRUE)
elseif(WIN32 AND AARCH64)
# build oneTBB 2021.2.1 with Visual Studio 2022 (MSVC 14.35)
Expand All @@ -148,18 +148,18 @@ function(ov_download_tbb)
elseif(LINUX AND AARCH64 AND OPENVINO_GNU_LIBC AND OV_LIBC_VERSION VERSION_GREATER_EQUAL 2.17)
# build oneTBB with glibc 2.17
RESOLVE_DEPENDENCY(TBB
ARCHIVE_LIN "oneapi-tbb-2021.13.0-rc1-lin-arm64-trim.tgz"
ARCHIVE_LIN "oneapi-tbb-2021.13.0-lin-arm64-release.tgz"
TARGET_PATH "${TEMP}/tbb"
ENVIRONMENT "TBBROOT"
SHA256 "7fe49525217de9536980a820d90645784216ad4a61e11799b8c95129dcdeeecf"
SHA256 "6e1106735714600474440c134df25b40a225d40b44c2102d7ff23e0482834faa"
USE_NEW_LOCATION TRUE)
elseif(APPLE AND AARCH64)
# build oneTBB with export MACOSX_DEPLOYMENT_TARGET=11.0
RESOLVE_DEPENDENCY(TBB
ARCHIVE_MAC "oneapi-tbb-2021.13.0-rc1-mac-arm64-trim.tgz"
ARCHIVE_MAC "oneapi-tbb-2021.13.0-mac-arm64-release.tgz"
TARGET_PATH "${TEMP}/tbb"
ENVIRONMENT "TBBROOT"
SHA256 "d3ce1c00e46a187baee459458e8d13d3421dc7242bff0c977b95d8d66d74441a"
SHA256 "de9893f8699c15b1c8b46daa7fc51e112e84353d66d5baf1c35574932747c64c"
USE_NEW_LOCATION TRUE)
else()
message(WARNING "Prebuilt TBB is not available on current platform")
Expand Down
3 changes: 3 additions & 0 deletions src/inference/tests/unit/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,7 @@ ov_add_test_target(
OV UNIT RUNTIME
)

# fix LTO add_symbol_to_partition_1 issue
set_target_properties(${TARGET_NAME} PROPERTIES INTERPROCEDURAL_OPTIMIZATION_RELEASE ${ENABLE_LTO})

ov_set_threading_interface_for(${TARGET_NAME})

0 comments on commit e0e5612

Please sign in to comment.