Files
openvino/tests/memory_tests
Ilya Lavrenov fb1faf8b2d Generate openvino.pc pkg-config file (#12779)
* Generate openvino.pc pkg-config file

* Added libva-dev as a dependency

* Fixed typo in install_build_dependencies.sh

* samples on CI

* Revert changes in samples; use pkg-config in tests

* Debug print

* Revert changes in fuzz tests

* Fixed TBB usage

* Fixed pkg-config usage for cross-compilation

* Fixed pkg_config_tbb_lib_dir

* Don't use PKG_CONFIG_EXECUTABLE unconditionally

* Fixed copy-patse

* Fixe

* Generate pkg-config file for Apple as well

* Fixes for ubuntu 22.04

* Disable apple
2022-09-05 13:40:21 +04:00
..

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