Make time && stress tests independent from IEDeveloperPackage (#7411)
* Specify own CXX configuration for time && stress tests * Included os_flags for build gflags * Updated README * Updated commands for build tests in README * Use new cmake config
This commit is contained in:
1 parent
ffa07eb6f3
commit
5847b35ed2
5 files changed
+25
-42
No files matched your search
@@ -4,6 +4,13 @@
|
||||
|
||||
cmake_minimum_required(VERSION 3.13)
|
||||
|
||||
set (CMAKE_CXX_STANDARD 11)
|
||||
set (CMAKE_CXX_EXTENSIONS OFF)
|
||||
set (CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
||||
set (CMAKE_CXX_FLAGS "-std=c++11 ${CMAKE_CXX_FLAGS}")
|
||||
endif()
|
||||
|
||||
set (CMAKE_BUILD_TYPE "Release" CACHE STRING "Choose the build type")
|
||||
|
||||
project(time_tests)
|
||||
@@ -11,16 +18,7 @@ project(time_tests)
|
||||
set(OpenVINO_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../../")
|
||||
|
||||
# Search OpenVINO Inference Engine installed
|
||||
find_package(InferenceEngine)
|
||||
|
||||
if(NOT InferenceEngine_FOUND)
|
||||
# Define directory where artifacts will be placed
|
||||
set(OUTPUT_ROOT ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
|
||||
# Search OpenVINO Inference Engine via InferenceEngineDeveloperPackage_DIR
|
||||
# in order to provide backward compatibility with old OpenVINO packages
|
||||
find_package(InferenceEngineDeveloperPackage REQUIRED)
|
||||
endif()
|
||||
find_package(OpenVINO REQUIRED)
|
||||
|
||||
add_subdirectory(src)
|
||||
|
||||
|
||||
@@ -15,21 +15,11 @@ the commands below:
|
||||
|
||||
1. Build tests:
|
||||
``` bash
|
||||
source <OpenVINO_install_dir>/bin/setupvars.sh
|
||||
mkdir build && cd build
|
||||
cmake .. && make time_tests
|
||||
```
|
||||
|
||||
If you don't have OpenVINO™ installed you need to have the `build` folder, which
|
||||
is created when you configure and build OpenVINO™ from sources:
|
||||
|
||||
``` bash
|
||||
cmake .. -DInferenceEngine_DIR=$(realpath ../../../build) && make time_tests
|
||||
```
|
||||
For old versions of OpenVINO™ from sources use `-DInferenceEngineDeveloperPackage_DIR`:
|
||||
``` bash
|
||||
cmake .. -DInferenceEngineDeveloperPackage_DIR=$(realpath ../../../build) && make time_tests
|
||||
```
|
||||
|
||||
2. Run test:
|
||||
``` bash
|
||||
./scripts/run_timetest.py ../../bin/intel64/Release/timetest_infer -m model.xml -d CPU
|
||||
|
||||
Reference in new issue
Block a user