Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BENCHMARK_APP] Show input command in output #13402

Merged

Conversation

PiotrKrzem
Copy link
Contributor

Details:

  • Input command line is now logged in first step of the benchmark_app
  • Realpath of the script is shown rather than the relative, which helps debugging in case of PYTHONPATH mismatch

Tickets:

  • 86133

@PiotrKrzem PiotrKrzem marked this pull request as ready for review October 11, 2022 15:23
@PiotrKrzem PiotrKrzem requested review from a team as code owners October 11, 2022 15:23
@PiotrKrzem PiotrKrzem changed the title [SAMPLES/CPP] Show input command in output [BENCHMARK_APP] Show input command in output Oct 19, 2022
@@ -161,12 +190,16 @@ int main(int argc, char* argv[]) {

// ----------------- 1. Parsing and validating input arguments
// -------------------------------------------------
auto args_string = get_console_command(argc, argv);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is a reason for doing it inside tool?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is easier to verify which benchmark_app is being used, C++ or Python, and from which directory. It can happen for example when the PYTHONPATH/PATH env variable is modified, or after the output alignment PR is merged, when both benchmarks' output is indistinguishable.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is easier to verify which benchmark_app is being used, C++ or Python, and from which directory. It can happen for example when the PYTHONPATH/PATH env variable is modified, or after the output alignment PR is merged, when both benchmarks' output is indistinguishable.

Validation related stuff should not be included into the tool. Why this PR was merged? cc @p-durandin

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As pointed out by @helena-intel in the ticket, the idea of this change is to make the usage of the tool and sharing output logs easier for the customers and our coworkers alike, I think this is a valid addition to the tool

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@PiotrKrzem I still don't understand why it is problem to share logs with initial command line. If user have ran tool, he knows what he typed in command line.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moreover for some automation scenarios we increase final log size.

samples/cpp/benchmark_app/main.cpp Outdated Show resolved Hide resolved
samples/cpp/benchmark_app/main.cpp Outdated Show resolved Hide resolved
samples/cpp/benchmark_app/main.cpp Outdated Show resolved Hide resolved
@t-jankowski t-jankowski self-requested a review October 20, 2022 14:05
@p-wysocki p-wysocki merged commit f893a58 into openvinotoolkit:master Oct 26, 2022
nkogteva added a commit that referenced this pull request Nov 11, 2022
nkogteva added a commit to nkogteva/openvino that referenced this pull request Nov 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants