インテル® Inspectorを使用してOpenVINO™画像分類非同期 C++ サンプルを実行する際にメモリーリークの問題が発生しました。
コンテンツタイプ: トラブルシューティング | 記事 ID: 000087957 | 最終改訂日: 2022/08/03
使用するコマンド:
$ 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
ベンチマーク・アプリは、推論パフォーマンスを最大化するためのリファレンスとして使用されました。ベンチマークアプリにはレイテンシー統計に関していくつかのコードがありました。
コードの関連するスニペットを削除すると、メモリが安定します
inferRequestsQueue クラスではプライベート std::vector_latencies を使用しbenchmark_appアプリケーションをストレステストに使用することは推奨しません。これは、すべてのレイテンシー値を収集し、レイテンシーの中央値を計算します。