Files
openvino/tests/memory_tests
Ilya Lavrenov 5719192687 Use ninja multi-config (#8757)
* Use ninja multu-config

* Reused OV_GENERATOR_MULTI_CONFIG

* Try to use config in api_validator post build task

* Fixes

* Revert "[GPU] Fix multi configuration build of onednn_gpu (#8743)"

This reverts commit a862331732.

* Propogate disable deprecated for _RELEASE flags as well
2021-11-27 14:58:24 +03:00
..
2021-10-20 12:02:39 +03:00
2021-10-01 15:44:26 +03:00
2021-11-27 14:58:24 +03: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