Update prebuilt tbbbind static library for Linux (#15832)
* update prebuilt tbbbind static library * update LICENSE file * update SHA256 * update prebuilt tbbbind static library for linux cmake 3.23.2 centos7 https://github.com/open-mpi/hwloc/archive/refs/tags/hwloc-2.8.0.tar.gz ./autogen.sh ./configure --enable-static --disable-io --disable-libudev --disable-libxml2 --disable-cairo CFLAGS="-fPIE" make -j$(proc) make install prefix=$(pwd)/install https://github.com/oneapi-src/oneTBB/archive/refs/tags/v2021.7.0.tar.gz sed -i "s/APPLE\s*OR\s*NOT\s*BUILD_SHARED_LIBS/APPLE/g" CMakeLists.txt export HWLOC_DIR="${hwloc_root_dir}/hwloc-hwloc-2.8.0/install" export PKG_CONFIG_PATH="${HWLOC_DIR}/lib/pkgconfig" export CXXFLAGS="-I ${HWLOC_DIR}/include -L ${HWLOC_DIR}/lib" ~/cmake-3.23.2-linux-x86_64/bin/cmake -DTBB_TEST=OFF -DTBB_BUILD=OFF -DTBBMALLOC_BUILD=OFF -DBUILD_SHARED_LIBS=OFF make -j$(nproc) * remove changes for windows --------- Co-authored-by: Chen Peter <peter.chen@intel.com>
This commit is contained in:
1 parent
69cec4a5e2
commit
025115f695
5 files changed
+27
-4
No files matched your search
@@ -184,10 +184,11 @@ function(ov_download_tbbbind_2_5)
|
||||
USE_NEW_LOCATION TRUE)
|
||||
elseif(LINUX AND X86_64)
|
||||
RESOLVE_DEPENDENCY(TBBBIND_2_5
|
||||
ARCHIVE_LIN "tbbbind_2_5_static_lin_v2.tgz"
|
||||
ARCHIVE_LIN "tbbbind_2_5_static_lin_v3.tgz"
|
||||
TARGET_PATH "${TEMP}/tbbbind_2_5"
|
||||
ENVIRONMENT "TBBBIND_2_5_ROOT"
|
||||
SHA256 "865e7894c58402233caf0d1b288056e0e6ab2bf7c9d00c9dc60561c484bc90f4")
|
||||
SHA256 "d39deb262c06981b5e2d2e3c593e9fc9be62ce4feb91dd4e648e92753659a6b3"
|
||||
USE_NEW_LOCATION TRUE)
|
||||
else()
|
||||
# TMP: for Apple Silicon TBB does not provide TBBBind
|
||||
if(NOT (APPLE AND AARCH64))
|
||||
|
||||
@@ -133,9 +133,13 @@ struct CPUStreamsExecutor::Impl {
|
||||
? (small_core ? small_core_offset : (logic_core ? 0 : 1))
|
||||
: 0;
|
||||
|
||||
# ifdef _WIN32
|
||||
_taskArena.reset(new custom::task_arena{custom::task_arena::constraints{}
|
||||
.set_core_type(selected_core_type)
|
||||
.set_max_concurrency(max_concurrency)});
|
||||
# else
|
||||
_taskArena.reset(new custom::task_arena{max_concurrency});
|
||||
# endif
|
||||
CpuSet processMask;
|
||||
int ncpus = 0;
|
||||
std::tie(processMask, ncpus) = get_process_mask();
|
||||
|
||||
+8
-1
@@ -76,7 +76,14 @@ auto default_affinity = [] {
|
||||
}
|
||||
}();
|
||||
#else
|
||||
auto default_affinity = ov::Affinity::CORE;
|
||||
auto default_affinity = [] {
|
||||
auto coreTypes = InferenceEngine::getAvailableCoresTypes();
|
||||
if (coreTypes.size() > 1) {
|
||||
return ov::Affinity::HYBRID_AWARE;
|
||||
} else {
|
||||
return ov::Affinity::CORE;
|
||||
}
|
||||
}();
|
||||
#endif
|
||||
|
||||
const std::vector<ov::AnyMap> default_properties = {
|
||||
|
||||
+4
@@ -252,6 +252,10 @@ TEST(OVClassBasicTest, smoke_SetConfigAffinity) {
|
||||
}
|
||||
#else
|
||||
auto defaultBindThreadParameter = ov::Affinity::CORE;
|
||||
auto coreTypes = InferenceEngine::getAvailableCoresTypes();
|
||||
if (coreTypes.size() > 1) {
|
||||
defaultBindThreadParameter = ov::Affinity::HYBRID_AWARE;
|
||||
}
|
||||
#endif
|
||||
OV_ASSERT_NO_THROW(value = ie.get_property("CPU", ov::affinity));
|
||||
ASSERT_EQ(defaultBindThreadParameter, value);
|
||||
|
||||
+8
-1
@@ -22,7 +22,14 @@ namespace {
|
||||
}
|
||||
}()};
|
||||
#else
|
||||
auto defaultBindThreadParameter = InferenceEngine::Parameter{std::string{CONFIG_VALUE(YES)}};
|
||||
auto defaultBindThreadParameter = InferenceEngine::Parameter{[] {
|
||||
auto coreTypes = InferenceEngine::getAvailableCoresTypes();
|
||||
if (coreTypes.size() > 1) {
|
||||
return std::string{CONFIG_VALUE(HYBRID_AWARE)};
|
||||
} else {
|
||||
return std::string{CONFIG_VALUE(YES)};
|
||||
}
|
||||
}()};
|
||||
#endif
|
||||
|
||||
INSTANTIATE_TEST_SUITE_P(
|
||||
|
||||
Reference in new issue
Block a user