Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

[Protopipe] Print version on startup (#33856)

Andrei Tamasfc1a94798ab5
diff --git a/src/plugins/intel_npu/tools/protopipe/main.cpp b/src/plugins/intel_npu/tools/protopipe/main.cpp
index e059abeb838..c974dfa1bbd 100644
--- a/src/plugins/intel_npu/tools/protopipe/main.cpp
+++ b/src/plugins/intel_npu/tools/protopipe/main.cpp
@@ -83,7 +83,7 @@ bool parseCommandLine(int* argc, char*** argv) {
return false;
}
if (FLAGS_v) {
- std::cout << APP_VERSION << std::endl;
+ // NB: Version is already printed at the start of main()
return false;
}
if (FLAGS_cfg.empty()) {
@@ -205,6 +205,7 @@ static Simulation::Ptr createSimulation(const std::string& mode, StreamDesc&& st
int main(int argc, char* argv[]) {
// NB: Intentionally wrapped into try-catch to display exceptions occur on windows.
try {
+ std::cout << "Protopipe " << APP_VERSION << std::endl;
if (!parseCommandLine(&argc, &argv)) {
return 0;
}
diff --git a/src/plugins/intel_npu/tools/protopipe/version.hpp.in b/src/plugins/intel_npu/tools/protopipe/version.hpp.in
index 9e4fa68d43d..98b5b4e0070 100644
--- a/src/plugins/intel_npu/tools/protopipe/version.hpp.in
+++ b/src/plugins/intel_npu/tools/protopipe/version.hpp.in
@@ -1,3 +1,3 @@
#pragma once
-#define APP_VERSION "v1.2.1-@GIT_SHA@"
+#define APP_VERSION "v1.2.2-@GIT_SHA@"