Skip to content

Commit

Permalink
Merge branch 'master' into itikhono/ts/strided_slice
Browse files Browse the repository at this point in the history
  • Loading branch information
itikhono authored Oct 8, 2023
2 parents d1b227a + 51afe48 commit 4ac2a6f
Show file tree
Hide file tree
Showing 168 changed files with 5,697 additions and 4,320 deletions.
3 changes: 3 additions & 0 deletions .ci/azure/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,9 @@ jobs:
- script: $(RUN_PREFIX) $(INSTALL_TEST_DIR)/ov_auto_unit_tests --gtest_output=xml:$(INSTALL_TEST_DIR)/TEST-ov_auto_unit_tests.xml
displayName: 'AUTO UT'

- script: $(RUN_PREFIX) $(INSTALL_TEST_DIR)/ov_auto_func_tests --gtest_output=xml:$(INSTALL_TEST_DIR)/TEST-ov_auto_func_tests.xml
displayName: 'AUTO FuncTests'

- script: $(RUN_PREFIX) $(INSTALL_TEST_DIR)/ov_auto_batch_unit_tests --gtest_output=xml:$(INSTALL_TEST_DIR)/TEST-ov_auto_batch_unit_tests.xml
displayName: 'AutoBatch UT'

Expand Down
3 changes: 3 additions & 0 deletions .ci/azure/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,9 @@ jobs:
- script: call $(SETUPVARS) && $(INSTALL_TEST_DIR)\ov_auto_unit_tests --gtest_output=xml:$(INSTALL_TEST_DIR)\TEST-ov_auto_unit_tests.xml
displayName: 'AUTO UT'

- script: call $(SETUPVARS) && $(INSTALL_TEST_DIR)\ov_auto_func_tests --gtest_output=xml:$(INSTALL_TEST_DIR)\TEST-ov_auto_func_tests.xml
displayName: 'AUTO FuncTests'

- script: call $(SETUPVARS) && $(INSTALL_TEST_DIR)\ov_auto_batch_unit_tests --gtest_output=xml:$(INSTALL_TEST_DIR)\TEST-ov_auto_batch_unit_tests.xml
displayName: 'AutoBatch UT'

Expand Down
47 changes: 29 additions & 18 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,12 +155,12 @@ jobs:
- name: Pack Artifacts
run: |
# Add the ONNX Runtime version and skip tests list to the archive to use in the ONNX Runtime Job
# Add the ONNX Runtime version and skip tests list to the archive to use in the ONNX Runtime Job
# w/o the need to checkout repository
cp -R ${ONNX_RUNTIME_UTILS} ${INSTALL_DIR}
pushd ${INSTALL_DIR}
tar -czvf ${BUILD_DIR}/openvino_package.tar.gz *
popd
Expand Down Expand Up @@ -432,10 +432,10 @@ jobs:
- name: Install Dependencies
run: |
sudo -E ${INSTALL_DIR}/install_dependencies/install_openvino_dependencies.sh -c=core -y
# Needed for downloading IRs from storage.openvinotoolkit with Python urllib
sudo apt-get update && sudo apt-get install --assume-yes --no-install-recommends ca-certificates
python3 -m pip install -r ${CONFORMANCE_TOOLS_DIR}/requirements.txt
#
Expand Down Expand Up @@ -560,7 +560,7 @@ jobs:
run: |
source ${INSTALL_DIR}/setupvars.sh
skip_tests=$(tr -s '\n ' ':' < ${ONNX_RUNTIME_UTILS}/skip_tests)
./onnxruntime_test_all --gtest_filter=-$skip_tests
working-directory: ${{ env.ONNX_RUNTIME_BUILD_DIR }}/RelWithDebInfo/RelWithDebInfo

Expand Down Expand Up @@ -733,6 +733,12 @@ jobs:
${INSTALL_TEST_DIR}/ov_auto_unit_tests --gtest_print_time=1 \
--gtest_output=xml:${INSTALL_TEST_DIR}/TEST-ov_auto_unit_tests.xml
- name: AUTO func Tests
run: |
source ${{ env.INSTALL_DIR }}/setupvars.sh
${{ env.INSTALL_TEST_DIR }}/ov_auto_func_tests --gtest_print_time=1 \
--gtest_output=xml:${{ env.INSTALL_TEST_DIR }}/TEST-ov_auto_func_tests.xml
- name: Template plugin func tests
run: |
source ${INSTALL_DIR}/setupvars.sh
Expand Down Expand Up @@ -1090,19 +1096,23 @@ jobs:
defaults:
run:
shell: bash
runs-on: ${{ github.event_name == 'schedule' && 'aks-linux-16-cores' || 'aks-linux-4-cores-16gb'}}
container:
image: openvinogithubactions.azurecr.io/dockerhub/ubuntu:20.04
volumes:
- /mount/caches:/mount/caches
runs-on: ${{ github.event_name == 'schedule' && 'ubuntu-20.04-16-cores' || 'ubuntu-20.04-8-cores'}}
# TODO: Switch back to self-hosted runners
# container:
# image: openvinogithubactions.azurecr.io/dockerhub/ubuntu:20.04
# volumes:
# - /mount/caches:/mount/caches
env:
INSTALL_DIR: ${{ github.workspace }}/install
INSTALL_TEST_DIR: ${{ github.workspace }}/install/tests
MODEL_HUB_TESTS_INSTALL_DIR: ${{ github.workspace }}/install/tests/model_hub_tests

steps:
- name: Check sudo
run: if [ "$(id -u)" -eq 0 ]; then apt update && apt --assume-yes install sudo; fi

- name: Install 'actions/setup-python@v4' dependencies
run: apt-get update && apt-get install -y libssl1.1 ca-certificates
run: sudo apt-get update && sudo apt-get install -y libssl1.1 ca-certificates

- uses: actions/setup-python@v4
with:
Expand Down Expand Up @@ -1165,11 +1175,12 @@ jobs:
defaults:
run:
shell: bash
runs-on: ${{ github.event_name == 'schedule' && 'aks-linux-16-cores' || 'aks-linux-8-cores'}}
container:
image: openvinogithubactions.azurecr.io/dockerhub/ubuntu:20.04
volumes:
- /mount/caches:/mount/caches
runs-on: ${{ github.event_name == 'schedule' && 'ubuntu-20.04-16-cores' || 'ubuntu-20.04-8-cores'}}
# TODO: Switch back to self-hosted runners
# container:
# image: openvinogithubactions.azurecr.io/dockerhub/ubuntu:20.04
# volumes:
# - /mount/caches:/mount/caches
env:
INSTALL_DIR: ${{ github.workspace }}/install
INSTALL_TEST_DIR: ${{ github.workspace }}/install/tests
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -595,6 +595,11 @@ jobs:
run: |
call "${{ env.INSTALL_DIR }}\\setupvars.bat" && ${{ env.INSTALL_TEST_DIR }}/ov_auto_unit_tests --gtest_print_time=1 --gtest_output=xml:${{ env.INSTALL_TEST_DIR }}/TEST-ov_auto_unit_tests.xml
- name: AUTO FuncTests
shell: cmd
run: |
call "${{ env.INSTALL_DIR }}\\setupvars.bat" && ${{ env.INSTALL_TEST_DIR }}/ov_auto_func_tests --gtest_print_time=1 --gtest_output=xml:${{ env.INSTALL_TEST_DIR }}/TEST-ov_auto_func_tests.xml
- name: Template plugin tests
shell: cmd
run: |
Expand Down Expand Up @@ -647,7 +652,7 @@ jobs:
env:
INSTALL_DIR: "${{ github.workspace }}\\install"
INSTALL_TEST_DIR: "${{ github.workspace }}\\install\\tests"
PARALLEL_TEST_SCRIPT: "${{ github.workspace }}\\install\\tests\\functional_test_utils\\run_parallel.py"
PARALLEL_TEST_SCRIPT: "${{ github.workspace }}\\install\\tests\\functional_test_utils\\layer_tests_summary\\run_parallel.py"
PARALLEL_TEST_CACHE: "${{ github.workspace }}\\install\\tests\\test_cache.lst"

steps:
Expand Down Expand Up @@ -687,7 +692,7 @@ jobs:
shell: cmd
run: |
python3 -m pip install --upgrade pip
python3 -m pip install -r ${{ github.workspace }}\install\tests\functional_test_utils\requirements.txt
python3 -m pip install -r ${{ github.workspace }}\install\tests\functional_test_utils\layer_tests_summary\requirements.txt
- name: Restore tests execution time
uses: actions/cache/restore@v3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@
Installing OpenVINO Runtime with Conan Package Manager
############################################################

1. Install Conan 2.0.8 or higher:
.. code-block:: console
1. `Install Conan <https://docs.conan.io/2/installation.html>`__ 2.0.8 or higher, for example, using pip:

.. code-block:: sh

python3 -m pip install conan

2. Create a ``conanfile.txt`` file for your OpenVINO project and add "*openvino*" dependency in there:

.. code-block:: console
.. code-block:: sh

[requires]
openvino/2023.1.0
Expand All @@ -58,8 +58,8 @@ Installing OpenVINO Runtime with Conan Package Manager
cmake_layout

Run the command below to create ``conan_toolchain.cmake`` file, which will be used to compile your project with OpenVINO:
.. code-block:: console

.. code-block:: sh

conan install conanfile.txt --build=missing

Expand All @@ -68,20 +68,20 @@ Installing OpenVINO Runtime with Conan Package Manager
what options there are on the `Conan Package Manager page for OpenVINO <https://conan.io/center/recipes/openvino>`__
and extend the command, like so:

.. code-block:: console
.. code-block:: sh

conan install conanfile.txt --build=missing -o:h openvino/*:enable_intel_gpu=False -o:h openvino/*:enable_onnx_frontend=False' -o:h openvino/*:shared=True.
conan install conanfile.txt --build=missing -o:h 'openvino/*:enable_intel_gpu=False' -o:h 'openvino/*:enable_onnx_frontend=False' -o:h 'openvino/*:shared=True'

3. Configure and compile your project with OpenVINO:
.. code-block:: console

.. code-block:: sh

cmake -DCMAKE_TOOLCHAIN_FILE=<path to conan_toolchain.cmake> -DCMAKE_BUILD_TYPE=Release -S <path to CMakeLists.txt of your project> -B <build dir>
cmake --build <build dir> --parallel

.. note::

OpenVINO can be used with any build interface, as long as it is supported by Conan 2.0.
OpenVINO can be used with any build interface, as long as it is supported by Conan 2.0. Read `more <https://docs.conan.io/2/examples/tools.html>`__.

Additional Resources
########################
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Installing OpenVINO Runtime

.. code-block:: sh

vcpkg install openvino:x64-windows-static
vcpkg install 'openvino:x64-windows-static'

Note that the vcpkg installation means building all packages and dependencies from source,
which means the compiler stage will require additional time to complete the process.
Expand Down Expand Up @@ -93,7 +93,7 @@ which means the compiler stage will require additional time to complete the proc

.. code-block:: sh

vcpkg install openvino:x64-linux-release-dynamic
vcpkg install 'openvino:x64-linux-release-dynamic'


After installation, you can use OpenVINO in your product's cmake scripts:
Expand Down
8 changes: 7 additions & 1 deletion src/common/conditional_compilation/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,13 @@ elseif(SELECTIVE_BUILD STREQUAL "ON")
endif()
find_host_package (Python3 REQUIRED COMPONENTS Interpreter)

file(GLOB STAT_FILES ${SELECTIVE_BUILD_STAT})
file(TO_CMAKE_PATH ${SELECTIVE_BUILD_STAT} CMAKE_SELECTIVE_BUILD_STAT)

file(GLOB STAT_FILES ${CMAKE_SELECTIVE_BUILD_STAT})

if(NOT STAT_FILES)
message(FATAL_ERROR "SELECTIVE_BUILD_STAT (${SELECTIVE_BUILD_STAT}) path doesn't contain valid csv files!")
endif()

target_compile_definitions(${TARGET_NAME} INTERFACE SELECTIVE_BUILD)

Expand Down
2 changes: 2 additions & 0 deletions src/inference/src/infer_request.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ OPENVINO_SUPPRESS_DEPRECATED_START
__VA_ARGS__; \
} catch (const ::InferenceEngine::RequestBusy& ex) { \
ov::Busy::create(ex.what()); \
} catch (const ov::Busy&) { \
throw; \
} catch (const std::exception& ex) { \
OPENVINO_THROW(ex.what()); \
} catch (...) { \
Expand Down
5 changes: 3 additions & 2 deletions src/plugins/auto/src/plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -415,8 +415,9 @@ std::shared_ptr<ov::ICompiledModel> Plugin::compile_model_impl(const std::string
load_config.set_user_property(pre_process_config(properties));
load_config.apply_user_properties();
if (!work_mode_auto) {
if (iter_config != properties.end() && iter_config->second != "THROUGHPUT") {
LOG_WARNING_TAG("User set perf_hint:%s, but MULTI supports THROUGHPUT only", iter_config->second.as<std::string>().c_str());
if (iter_config != properties.end() && iter_config->second.as<std::string>() != "THROUGHPUT") {
LOG_WARNING_TAG("User set perf_hint:%s, but MULTI supports THROUGHPUT only",
iter_config->second.as<std::string>().c_str());
}
load_config.set_property(ov::hint::performance_mode(ov::hint::PerformanceMode::CUMULATIVE_THROUGHPUT));
}
Expand Down
1 change: 1 addition & 0 deletions src/plugins/auto/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ if(CMAKE_COMPILER_IS_GNUCXX AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION_RELEASE ${ENABLE_LTO})
endif()

add_subdirectory(functional)
add_subdirectory(unit)
34 changes: 34 additions & 0 deletions src/plugins/auto/tests/functional/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#

set(TARGET_NAME ov_auto_func_tests)

if(ENABLE_AUTO_BATCH)
list(APPEND DEPENDENCIES openvino_auto_batch_plugin)
list(APPEND COMPILE_DEFINITIONS ENABLE_AUTO_BATCH)
endif()

if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
ie_add_compiler_flags(/wd4305)
endif()

ov_add_test_target(
NAME ${TARGET_NAME}
ROOT ${CMAKE_CURRENT_SOURCE_DIR}
LINK_LIBRARIES
openvino::runtime::dev
gtest
gtest_main
openvino::funcSharedTests
INCLUDES
${CMAKE_CURRENT_SOURCE_DIR}
${TEST_COMMON_INCLUDE_DIR}
ADD_CLANG_FORMAT
LABELS
Multi
Auto
)

target_compile_definitions(${TARGET_NAME} PRIVATE ${COMPILE_DEFINITIONS})
set_ie_threading_interface_for(${TARGET_NAME})
Loading

0 comments on commit 4ac2a6f

Please sign in to comment.