Commit Graph
28 Commits
Author SHA1 Message Date
Fang XuandChen Peter 488abd0ad2 fix coredump with numactl (#21393)
* fix coredump with numactl

* record original socketid and numaid

* update comment

* update comments

---------

Co-authored-by: Chen Peter <peter.chen@intel.com>
2023-12-08 14:20:35 +08:00
Fang Xu ea1ffbaf7f [CPU] Output correct streams and threads number (#21421) 2023-12-05 22:52:15 +04:00
Fang XuandWanglei Shen 03d54a579e binding pcore for stream calculation (#19550)
* binding pcore for stream calculation

* remove useless branch

* modify the function of query cache size

* fix compilation error

* use MT2.0 interface

* bind core when there is ecore

* initialize Xbyak::util::Cpu object at the begining of compile_model

* restore the file

* initialize Xbyak::util::Cpu object at the beginning of cpu plugin

* remove unused header

* extract task executor creation into a separate function

---------

Co-authored-by: Wanglei Shen <wanglei.shen@intel.com>
2023-11-23 12:14:36 +08:00
Fang XuandWanglei Shen 82f191b0e7 choose Pcore to compile model for GPU plugin (#20472)
* choose Pcore to compile model for GPU plugin

* provide function to update executor config

* set callback executor to nullptr for GPU plugin

* fix code style

* fix warning

* optimize duplicate code

* set callback executor to nullptr for another gpu compile_model

* add description for new function

* add smoke test

* fix code style

* modify function definition

---------

Co-authored-by: Wanglei Shen <wanglei.shen@intel.com>
2023-10-30 16:24:36 +08:00
Fang Xu 4aa6899b07 update linux oneTBB with version 2021.2.4 (#20675) 2023-10-26 13:14:43 +04:00
Fang Xu 361011c75e fix coverity scan issue (#20678) 2023-10-25 12:48:43 +04:00
Fang Xu 5e017dc5d2 fix compilation issue for openmp on windows (#20312)
* fix compilation issue for openmp on windows

* update based on suggestions
2023-10-23 15:18:51 +04:00
Fang Xu 6bec4fc6df build onetbb with hwloc2.9.3 (#20481) 2023-10-19 11:57:27 +04:00
Fang XuandIlya Lavrenov 2f9727aef9 fix compilation issue on Windows arm64 (#19873)
* fix compilation issue on Windows arm64

* fix build issue

* fix build issue

* disable clang compiler for Windows on ARM

* disable clang compiler for cpu plugin

* Update CMakeLists.txt

removed fatal_error from cpu cmake

* Update features.cmake

disable Intel CPU plugin by default on Windows ARM64 with clangl-cl compiler

* update comments

* fix build issue

---------

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2023-09-28 05:56:10 +00:00
Fang Xu 228ea44743 [CPU] Use omp section instead of task in UpdateNodes logic (#19831) 2023-09-20 17:47:48 +04:00
Fang Xu 016c7dea8a update oneTBB with https://github.com/oneapi-src/oneTBB/releases/tag/v2021.2.3 (#19639) 2023-09-12 13:53:23 +08:00
Fang Xu e33de35063 [CPU] Add max_threads_per_core setting into StreamExecutor (#18857) 2023-08-11 14:12:38 +00:00
Fang Xu 902a953b06 update sha256 of oneTBB2021.2.1 on mac arm64 (#18907) 2023-08-02 11:13:30 +04:00
Fang Xu 349d159327 enable canary for mac arm64 oneTBB2021.2.1 (#18864) 2023-07-31 11:33:49 +04:00
Fang Xu e478964695 merge loadnetwork and importnetwork for cpu plugin (#18024)
* merget loadnetwork and importnetwork for cpu plugin

* fix testcase

* remove multithreading config saving

* modify test case

* separate function

* modify function name

* save model_prefer_threads to cache

* remove function encapsulation for config
2023-07-21 14:02:11 +08:00
Fang Xu 84bf35958e enable canary for linux oneTBB2021.2.1 (#18444)
* enable canary for linux oneTBB2021.2.1

* modify oneTBB package name
2023-07-14 10:35:56 +00:00
Fang Xu 661f66b5c5 combine test for stream_info_table (#17930)
* combine test for stream_info_table

* fix failed test cases

* add check for performance hint and core type

* add comments for the parameters of test case
2023-06-14 00:40:08 +08:00
Fang XuandWanglei Shen 25865201ef enable cpu map for mac (#17499)
* enable cpu map for mac

enable nstreams and nthreads setting for mac

* keep streams=1 for M1

* add explicit type conversion

* remove definition of static cpu

* Update with master

* separate branches for __APPLE__ and __EMSCRIPTEN__

* modify the implementation of is_cpu_map_available function

---------

Co-authored-by: Wanglei Shen <wanglei.shen@intel.com>
2023-05-30 15:53:23 +08:00
Fang Xu 2fb984b60f update oneTBB2021.2.2 for windows (#17390)
oneTBB https://github.com/oneapi-src/oneTBB/releases/tag/v2021.2.2 (a25ebdf)
2023-05-15 19:33:54 +04:00
Fang XuandChen Peter 656d7fe380 prebuilt oneTBB binaries for ARM64 (#16904)
* use oneTBB for arm64

* force THREADING=TBB

* test: remove TBB_DIR for linux arm64

* update linux and mac arm64 packages

* update SHA256

* add comment

* disable add_rpath for tbb libraries on mac arm64

---------

Co-authored-by: Chen Peter <peter.chen@intel.com>
2023-04-24 09:48:47 +04:00
Fang Xu 4ade0e5533 fix wheel_blacklist_extension for macos (#16799) 2023-04-07 11:28:56 +04:00
Fang Xu a96da994ec Update prebuilt oneTBB2021.2.1 (#16548)
*update prebuilt oneTBB2021.2.1

*modify tbb and tbb component installation

*modify the implementation of removing soft links

*update prebuilt oneTBB2021.2.1
macos: 11.4
windows: win10+visual studio 2019(MSVC 14.21)
https://github.com/open-mpi/hwloc/archive/refs/tags/hwloc-2.8.0.tar.gz
https://github.com/open-mpi/hwloc/archive/refs/tags/hwloc-2.8.0.zip
https://github.com/oneapi-src/oneTBB/archive/refs/tags/v2021.2.1.tar.gz(commitid:96af5d3)
https://github.com/oneapi-src/oneTBB/archive/refs/tags/v2021.2.1.zip(commitid:96af5d3)

before building oneTBB 2021.2.1, replace all strings "2_4" of the source code with "2_5"

for windows, after compilation, replace all strings
INTERFACE_COMPILE_DEFINITIONS "\$<\$<CONFIG:DEBUG>:TBB_USE_DEBUG>" to INTERFACE_COMPILE_DEFINITIONS "\$<\$<CONFIG:DEBUG>:TBB_USE_DEBUG>;__TBB_NO_IMPLICIT_LINKAGE=1"
in cmake file "%cd%\install\lib\cmake\TBB\TBBTargets.cmake"
2023-03-25 08:46:43 +00:00
Fang XuandChen Peter 025115f695 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>
2023-03-24 14:27:57 +08:00
Fang Xu ae37ca671c [CPU] Fix core dump issue for ENABLE_DEBUG_CAPS (#16229) 2023-03-14 10:32:57 +04:00
Fang Xu 7deb9090bf [CPU] Enable conditional compilation for graph optimizer (#15478) 2023-03-03 11:55:39 +04:00
Fang XuandIlya Lavrenov 62dd3c5218 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>
2023-02-13 17:34:04 +00:00
Fang XuandChen Peter 8786fbe0c3 update tbb linux and mac binaries (#14080)
Co-authored-by: Chen Peter <peter.chen@intel.com>
2022-11-22 14:33:52 +08:00
Fang XuandRiver Li 8b781c93a9 Fix compilation error for ia32 (#13253)
Co-authored-by: River Li <river.li@intel.com>
2022-09-30 12:12:59 +04:00