This repository was archived by the owner on Nov 19, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +14
-2
lines changed Expand file tree Collapse file tree 3 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 2727# That's too complicated and unneeded. Better auto-download binary libs for your system as it was before.
2828#
2929# -D BUILD_SHARED_LIBS=ON \ always crash
30+ #
31+ # for ENABLE_SSE42/AVX2/AVX512F see dldt/inference-engine/src/extension/cmake/OptimizationFlags.cmake
32+ #
33+ # if you'll set -D ENABLE_PLUGIN_RPATH=ON, you'll need to chrpath ~4 *.so, better to setrpath one .so
3034
3135cmake -D CMAKE_BUILD_TYPE=Release \
3236 -D THREADING=TBB \
@@ -49,4 +53,7 @@ cmake -D CMAKE_BUILD_TYPE=Release \
4953 -D ENABLE_GNA=OFF \
5054 -D ENABLE_PROFILING_ITT=OFF \
5155 -D ENABLE_ALTERNATIVE_TEMP=OFF \
56+ -D ENABLE_SSE42=ON \
57+ -D ENABLE_AVX2=ON \
58+ -D ENABLE_AVX512F=OFF \
5259 -D ENABLE_CLDNN=OFF ../../dldt/inference-engine/
Original file line number Diff line number Diff line change @@ -16,6 +16,9 @@ export PKG_CONFIG_LIBDIR=$FFMPEG_PATH/lib/:$PKG_CONFIG_LIBDIR
1616PY_VER=` $ABS_PORTION /venv/bin/python3 --version | sed -rn " s/Python .\.(.)\..$/\1/p" `
1717PY_LIB_PATH=` find $ABS_PORTION /venv/lib/ -iname libpython3.${PY_VER} m.so`
1818
19+ # >=dldt-2019_R2 requires SSE4_2 (?)
20+ # for CPU_BASELINE and CPU_DISPATCH see https://github.com/opencv/opencv/wiki/CPU-optimizations-build-options
21+ # they should match with ones for dldt/inference-engine/src/extension/cmake/OptimizationFlags.cmake
1922cmake -D CMAKE_BUILD_TYPE=RELEASE \
2023 -D OPENCV_FORCE_3RDPARTY_BUILD=ON \
2124 -D OPENCV_SKIP_PYTHON_LOADER=ON \
@@ -76,4 +79,6 @@ cmake -D CMAKE_BUILD_TYPE=RELEASE \
7679 -D WITH_CUDA=OFF \
7780 -D INF_ENGINE_INCLUDE_DIRS=$ABS_PORTION /dldt/inference-engine/include \
7881 -D INF_ENGINE_LIB_DIRS=$ABS_PORTION /dldt/inference-engine/bin/intel64/Release/lib \
79- -D WITH_INF_ENGINE=ON ../../opencv
82+ -D WITH_INF_ENGINE=ON \
83+ -D CPU_BASELINE=SSE4_2 \
84+ -D CPU_DISPATCH=AVX,AVX2 ../../opencv
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ def __len__(self):
1515
1616setuptools .setup (
1717 name = "opencv-python-inference-engine" ,
18- version = "4.1.1.0 " ,
18+ version = "4.1.1.1 " ,
1919 url = "https://github.com/banderlog/opencv-python-inference-engine" ,
2020 maintainer = "Kabakov Borys" ,
2121 license = 'MIT, BSD' ,
You can’t perform that action at this time.
0 commit comments