Export OpenVINOGenAI_DIR (#24683) (#24870)

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
This commit is contained in:
Zlobin Vladimir 2024-06-05 22:43:26 +04:00 committed by GitHub
parent 13922e7515
commit 00d525f5a2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 11 additions and 0 deletions

View File

@ -34,6 +34,10 @@ if exist "%INTEL_OPENVINO_DIR%\extras\opencv\setupvars.bat" (
:: OpenVINO runtime
set "OpenVINO_DIR=%INTEL_OPENVINO_DIR%\runtime\cmake"
if exist "%OpenVINO_DIR%\OpenVINOGenAIConfig.cmake" (
:: If GenAI is installed, export it as well.
set OpenVINOGenAI_DIR=%OpenVINO_DIR%
)
set "OPENVINO_LIB_PATHS=%INTEL_OPENVINO_DIR%\runtime\bin\intel64\Release;%INTEL_OPENVINO_DIR%\runtime\bin\intel64\Debug;%OPENVINO_LIB_PATHS%"
:: TBB

View File

@ -9,6 +9,11 @@ param (
$Env:INTEL_OPENVINO_DIR = Split-Path $MyInvocation.MyCommand.Path
$Env:OpenVINO_DIR = "$Env:INTEL_OPENVINO_DIR/runtime/cmake"
if (Test-Path -Path "$Env:OpenVINO_DIR/OpenVINOGenAIConfig.cmake")
{
# If GenAI is installed, export it as well.
$Env:OpenVINOGenAI_DIR = $Env:OpenVINO_DIR
}
$Env:OPENVINO_LIB_PATHS = "$Env:INTEL_OPENVINO_DIR/runtime/bin/intel64/Release;$Env:INTEL_OPENVINO_DIR/runtime/bin/intel64/Debug;$Env:OPENVINO_LIB_PATHS"
# TBB

View File

@ -33,6 +33,8 @@ done
if [ -e "$INSTALLDIR/runtime" ]; then
export OpenVINO_DIR=$INSTALLDIR/runtime/cmake
# If GenAI is installed, export it as well.
[ -f "$OpenVINO_DIR/OpenVINOGenAIConfig.cmake" ] && export OpenVINOGenAI_DIR=$OpenVINO_DIR
system_type=$(/bin/ls "$INSTALLDIR/runtime/lib/")
OV_PLUGINS_PATH=$INSTALLDIR/runtime/lib/$system_type