Skip to content

Commit

Permalink
fixed codestyle job
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-gorokhov committed Jan 2, 2025
1 parent 96fd024 commit 9e60b47
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
7 changes: 3 additions & 4 deletions samples/cpp/benchmark_app/benchmark_app.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ static const char infer_num_threads_message[] = "Optional. Number of threads to
"(including HETERO and MULTI cases).";

// @brief message for CPU threads pinning option
static const char infer_threads_pinning_message[] =
"Optional. Explicit threads->cores pinning for CPU inference tasks (leave empty to let the OpenVINO make a choice).";
static const char infer_threads_pinning_message[] = "Optional. Explicit threads->cores pinning for CPU inference tasks "
"(leave empty to let the OpenVINO make a choice).";

// @brief message for switching memory allocation type option
static const char use_device_mem_message[] =
Expand Down Expand Up @@ -421,8 +421,7 @@ static void show_usage() {
std::cout << std::endl;
std::cout << "Device-specific performance options:" << std::endl;
std::cout << " -nthreads <integer> " << infer_num_threads_message << std::endl;
std::cout << " -pin <string> \"YES\" / \"NO\" "
<< infer_threads_pinning_message << std::endl;
std::cout << " -pin <string> \"YES\" / \"NO\" " << infer_threads_pinning_message << std::endl;
std::cout << " -use_device_mem " << use_device_mem_message << std::endl;
std::cout << std::endl;
std::cout << "Statistics dumping options:" << std::endl;
Expand Down
3 changes: 2 additions & 1 deletion samples/cpp/benchmark_app/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,8 @@ int main(int argc, char* argv[]) {

auto set_nthreads_pin = [&](const std::string& str) {
OPENVINO_SUPPRESS_DEPRECATED_START
auto property_name = str == "nthreads" ? ov::inference_num_threads.name() : ov::hint::enable_cpu_pinning.name();
auto property_name =
str == "nthreads" ? ov::inference_num_threads.name() : ov::hint::enable_cpu_pinning.name();
auto property = str == "nthreads" ? ov::inference_num_threads(int(FLAGS_nthreads))
: ov::hint::enable_cpu_pinning(FLAGS_pin);
OPENVINO_SUPPRESS_DEPRECATED_END
Expand Down

0 comments on commit 9e60b47

Please sign in to comment.