Article ID: 000087957 Content Type: Troubleshooting Last Reviewed: 08/03/2022

Encountered Memory Leak Issue When Running OpenVINO™ Image Classification Async C++ Sample with Intel® Inspector

Environment

OpenVINO 2021.3, CentOS 7

CentOS 7.3

BUILT IN - ARTICLE INTRO SECOND COMPONENT
Summary

How to avoid memory leaking issue when running OpenVINO™ C++ samples with the Intel Inspector.

Description
  1. Ran OpenVINO™ Image Classification Async C++ Sample with Intel® Inspector for checking memory issue.

    Command used:

    $ pwd
    /home/centos/inference_engine_cpp_samples_build/intel64/Release

    $ /opt/intel/oneapi/inspector/2021.3.0/bin64/inspxe-cl -c mi3 ./classification_sample_async -m /opt/intel/openvino_2021.3.394/deployment_tools/open_model_zoo/tools/downloader/intel/image-retrieval-0001/FP16-INT8/image-retrieval-0001.xml -i /home/centos/images -nt 8

    $ /opt/intel/oneapi/inspector/2021.3.0/bin64/inspxe-cl -report observations

  2. Intel® Inspector generated report detailing the memory issue.
Resolution

The Benchmark App was used as a reference to maximize inference performance. There were some codes relating to latency statistics in Benchmark App.

Removing the related snippets of the code will make the memory stable

Additional information

It is not recommended to use benchmark_app application for stress testing as it uses private std::vector<double>_latencies in InferRequestsQueue class, which collects every latency value and calculates the median value of latency.

Related Products

This article applies to 2 products