* Removed Intel MYRIAD plugin * Removed Intel MYIAD from CI files * Removed Intel MYRIAD from cmake folder * Removed MYRIAD, HDDL from samples * Removed MYRIAD, HDDL from scripts folder * Removed MYRIAD from bindings folder (C and Python API) * Removed MYRIAD tests * Removed MYRIAD from tests folder * Removed MYRIAD from tools folder * Removed HDDL (VAD), MYRIAD (NSC2) from documentation * Fixed build for AUTO unit tests * Fixed clang code style * Fixed comments and issues * removed MYRIAD from AUTO tests * Disabled MULTI tests in CI * Update docs/OV_Runtime_UG/auto_device_selection.md Co-authored-by: Yuan Xu <yuan1.xu@intel.com> * Update docs/get_started/get_started_demos.md Co-authored-by: Yuan Xu <yuan1.xu@intel.com> * Update docs/OV_Runtime_UG/deployment/local-distribution.md Co-authored-by: Yuan Xu <yuan1.xu@intel.com> Co-authored-by: Yuan Xu <yuan1.xu@intel.com>
136 lines
4.6 KiB
Batchfile
136 lines
4.6 KiB
Batchfile
@echo off
|
|
|
|
:: Copyright (C) 2018-2023 Intel Corporation
|
|
:: SPDX-License-Identifier: Apache-2.0
|
|
|
|
set SCRIPT_NAME=%~nx0
|
|
|
|
set "INTEL_OPENVINO_DIR=%~dp0"
|
|
|
|
set "python_version="
|
|
|
|
:: command line arguments parsing
|
|
:input_arguments_loop
|
|
if not "%1"=="" (
|
|
if "%1"=="-pyver" (
|
|
set "python_version=%2"
|
|
shift
|
|
)
|
|
shift
|
|
goto :input_arguments_loop
|
|
)
|
|
|
|
:: OpenCV
|
|
if exist "%INTEL_OPENVINO_DIR%\opencv\setupvars.bat" (
|
|
call "%INTEL_OPENVINO_DIR%\opencv\setupvars.bat"
|
|
goto :opencv_done
|
|
)
|
|
|
|
if exist "%INTEL_OPENVINO_DIR%\extras\opencv\setupvars.bat" (
|
|
call "%INTEL_OPENVINO_DIR%\extras\opencv\setupvars.bat"
|
|
goto :opencv_done
|
|
)
|
|
:opencv_done
|
|
|
|
:: OpenVINO runtime
|
|
set "InferenceEngine_DIR=%INTEL_OPENVINO_DIR%\runtime\cmake"
|
|
set "ngraph_DIR=%INTEL_OPENVINO_DIR%\runtime\cmake"
|
|
set "OpenVINO_DIR=%INTEL_OPENVINO_DIR%\runtime\cmake"
|
|
set "OPENVINO_LIB_PATHS=%INTEL_OPENVINO_DIR%\runtime\bin\intel64\Release;%INTEL_OPENVINO_DIR%\runtime\bin\intel64\Debug;%OPENVINO_LIB_PATHS%"
|
|
|
|
:: TBB
|
|
if exist %INTEL_OPENVINO_DIR%\runtime\3rdparty\tbb (
|
|
|
|
if exist %INTEL_OPENVINO_DIR%\runtime\3rdparty\tbb\redist (
|
|
set "OPENVINO_LIB_PATHS=%INTEL_OPENVINO_DIR%\runtime\3rdparty\tbb\redist\intel64\vc14;%OPENVINO_LIB_PATHS%"
|
|
) else if exist %INTEL_OPENVINO_DIR%\runtime\3rdparty\tbb\bin\intel64\vc14 (
|
|
set "OPENVINO_LIB_PATHS=%INTEL_OPENVINO_DIR%\runtime\3rdparty\tbb\bin\intel64\vc14;%OPENVINO_LIB_PATHS%"
|
|
) else if exist %INTEL_OPENVINO_DIR%\runtime\3rdparty\tbb\bin (
|
|
set "OPENVINO_LIB_PATHS=%INTEL_OPENVINO_DIR%\runtime\3rdparty\tbb\bin;%OPENVINO_LIB_PATHS%"
|
|
)
|
|
|
|
if exist %INTEL_OPENVINO_DIR%\runtime\3rdparty\tbb\cmake (
|
|
set "TBB_DIR=%INTEL_OPENVINO_DIR%\runtime\3rdparty\tbb\cmake"
|
|
) else if exist %INTEL_OPENVINO_DIR%\runtime\3rdparty\tbb\lib\cmake\TBB (
|
|
set "TBB_DIR=%INTEL_OPENVINO_DIR%\runtime\3rdparty\tbb\lib\cmake\TBB"
|
|
) else if exist %INTEL_OPENVINO_DIR%\runtime\3rdparty\tbb\lib64\cmake\TBB (
|
|
set "TBB_DIR=%INTEL_OPENVINO_DIR%\runtime\3rdparty\tbb\lib64\cmake\TBB"
|
|
) else if exist %INTEL_OPENVINO_DIR%\runtime\3rdparty\tbb\lib\cmake\tbb (
|
|
set "TBB_DIR=%INTEL_OPENVINO_DIR%\runtime\3rdparty\tbb\lib\cmake\tbb"
|
|
)
|
|
)
|
|
|
|
:: Compile tool
|
|
if exist %INTEL_OPENVINO_DIR%\tools\compile_tool (
|
|
set "PATH=%INTEL_OPENVINO_DIR%\tools\compile_tool;%PATH%"
|
|
)
|
|
|
|
:: Add libs dirs to the PATH
|
|
set "PATH=%OPENVINO_LIB_PATHS%;%PATH%"
|
|
|
|
:: Check if Python is installed
|
|
set PYTHON_VERSION_MAJOR=3
|
|
set MIN_REQUIRED_PYTHON_VERSION_MINOR=7
|
|
set MAX_SUPPORTED_PYTHON_VERSION_MINOR=10
|
|
|
|
python --version 2>NUL
|
|
if errorlevel 1 (call :python_not_installed) else (call :check_python_version)
|
|
|
|
echo [setupvars.bat] OpenVINO environment initialized
|
|
|
|
exit /B 0
|
|
|
|
:python_not_installed
|
|
echo Warning^: Python is not installed. Please install one of Python %PYTHON_VERSION_MAJOR%.%MIN_REQUIRED_PYTHON_VERSION_MINOR% - %PYTHON_VERSION_MAJOR%.%MAX_SUPPORTED_PYTHON_VERSION_MINOR% ^(64-bit^) from https://www.python.org/downloads/
|
|
exit /B 0
|
|
|
|
:check_python_version
|
|
:: Check Python version if user did not pass -pyver
|
|
if "%python_version%" == "" (
|
|
for /F "tokens=* USEBACKQ" %%F IN (`python -c "import sys; print(str(sys.version_info[0])+'.'+str(sys.version_info[1]))" 2^>^&1`) DO (
|
|
set python_version=%%F
|
|
)
|
|
)
|
|
|
|
for /F "tokens=1,2 delims=. " %%a in ("%python_version%") do (
|
|
set pyversion_major=%%a
|
|
set pyversion_minor=%%b
|
|
)
|
|
|
|
if %pyversion_major% equ %PYTHON_VERSION_MAJOR% (
|
|
if %pyversion_minor% geq %MIN_REQUIRED_PYTHON_VERSION_MINOR% (
|
|
if %pyversion_minor% leq %MAX_SUPPORTED_PYTHON_VERSION_MINOR% (
|
|
set "check_pyversion=true"
|
|
)
|
|
)
|
|
)
|
|
|
|
if not "%check_pyversion%"=="true" (
|
|
echo Unsupported Python version. Please install one of Python %PYTHON_VERSION_MAJOR%.%MIN_REQUIRED_PYTHON_VERSION_MINOR% - %PYTHON_VERSION_MAJOR%.%MAX_SUPPORTED_PYTHON_VERSION_MINOR% ^(64-bit^) from https://www.python.org/downloads/
|
|
exit /B 0
|
|
)
|
|
|
|
:: Check Python bitness
|
|
python -c "import sys; print(64 if sys.maxsize > 2**32 else 32)" 2 > NUL
|
|
if errorlevel 1 (
|
|
echo Warning^: Cannot determine installed Python bitness
|
|
exit /B 0
|
|
)
|
|
|
|
for /F "tokens=* USEBACKQ" %%F IN (`python -c "import sys; print(64 if sys.maxsize > 2**32 else 32)" 2^>^&1`) DO (
|
|
set bitness=%%F
|
|
)
|
|
|
|
if not "%bitness%"=="64" (
|
|
echo Unsupported Python bitness. Please install one of Python %PYTHON_VERSION_MAJOR%.%MIN_REQUIRED_PYTHON_VERSION_MINOR% - %PYTHON_VERSION_MAJOR%.%MAX_SUPPORTED_PYTHON_VERSION_MINOR%^(64-bit^) from https://www.python.org/downloads/
|
|
exit /B 0
|
|
)
|
|
|
|
set PYTHONPATH=%INTEL_OPENVINO_DIR%\python\python%pyversion_major%.%pyversion_minor%;%INTEL_OPENVINO_DIR%\python\python3;%PYTHONPATH%
|
|
exit /B 0
|
|
|
|
:GetFullPath
|
|
SET %2=%~f1
|
|
|
|
GOTO :EOF
|