Skip to content

Commit

Permalink
Update samples/cpp/benchmark_app/main.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Vladimir Zlobin <[email protected]>
  • Loading branch information
valir and Wovchena authored Dec 19, 2024
1 parent d2db119 commit 6979b35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/cpp/benchmark_app/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ bool parse_and_check_command_line(int argc, char* argv[]) {
throw std::logic_error("Incorrect API. Please set -api option to `sync` or `async` value.");
}
if (FLAGS_api == "sync") {
if (FLAGS_t == 0)&&(FLAGS_nireq > FLAGS_niter)) {
if (FLAGS_t == 0) && (FLAGS_nireq > FLAGS_niter)) {
throw std::logic_error(
"Number of iterations should be greater than number of infer requests when using sync API.");
}
Expand Down

0 comments on commit 6979b35

Please sign in to comment.