openvino/tests/memory_tests
Lidia Toropova 2ce7becc6b
Moved memory tests to OV API 2.0 (#9924)
* Moved memory tests to OV API 2.0

* Added configs for OV api 2, updated configs for api 1

* Commented several models in configs (no such models on omz)

* Updated fillTensors

* Fix to get network inputs

* Updated fillTensors and configs
2022-02-01 14:36:05 +03:00
..
.automation Moved memory tests to OV API 2.0 (#9924) 2022-02-01 14:36:05 +03:00
include/memory_tests_helper Update year to 2022 in copyright notice (#9755) 2022-01-19 01:07:49 +03:00
scripts Moved memory tests to OV API 2.0 (#9924) 2022-02-01 14:36:05 +03:00
src Moved memory tests to OV API 2.0 (#9924) 2022-02-01 14:36:05 +03:00
test_runner Moved memory tests to OV API 2.0 (#9924) 2022-02-01 14:36:05 +03:00
CMakeLists.txt Update year to 2022 in copyright notice (#9755) 2022-01-19 01:07:49 +03:00
README.md fix work with query memory timeline (#8063) 2021-10-25 16:51:53 +03:00

README.md

Memory Tests

This test suite contains pipelines, which are executables. Memory tests measuring memory required for the use cases and fail when memory usage exceeds a pre-defined level.

Prerequisites

To build memory tests, you need to have OpenVINO™ installed or build from source.

Measure Time

To build and run the tests, open a terminal, set OpenVINO™ environment and run the commands below:

  1. Build tests:
mkdir build && cd build
cmake .. && make memory_tests
  1. Install tests:
сmake install <build_dir> --prefix <install_path>
  1. Run test:
./scripts/run_memorytest.py <install_path>/tests/memtest_infer -m model.xml -d CPU
  1. Run several configurations using pytest:
pytest ./test_runner/test.py --exe <install_path>/tests/memorytest_infer
# For parse_stat testing:
pytest ./scripts/run_memorytest.py