Skip to content

Commit

Permalink
clang/identation
Browse files Browse the repository at this point in the history
  • Loading branch information
myshevts committed Jul 1, 2021
1 parent 85073dd commit 050a415
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
8 changes: 3 additions & 5 deletions inference-engine/samples/benchmark_app/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,7 @@ int main(int argc, char* argv[]) {
else if (FLAGS_mode == "latency" || FLAGS_mode == "LATENCY")
ov_perf_mode = CONFIG_VALUE(LATENCY);
else if (!FLAGS_mode.empty())
throw std::logic_error("Performance mode " + ov_perf_mode + " is not recognized!");

throw std::logic_error("Performance mode " + ov_perf_mode + " is not recognized!");

bool perf_counts = false;
// Update config per device according to command line parameters
Expand Down Expand Up @@ -426,10 +425,9 @@ int main(int argc, char* argv[]) {
std::cout << "OV_PERFORMANCE_MODE: " << ov_perf_mode << std::endl;
// output of the actual settings that the mode produces (debugging)
for (auto& device : devices) {
std::vector<std::string> supported_config_keys = ie.GetMetric(device,
METRIC_KEY(SUPPORTED_CONFIG_KEYS));
std::vector<std::string> supported_config_keys = ie.GetMetric(device, METRIC_KEY(SUPPORTED_CONFIG_KEYS));
std::cout << "Device: " << device << std::endl;
for (auto cfg : supported_config_keys) {
for (auto cfg : supported_config_keys) {
std::cout << " {" << cfg << " , " << exeNetwork.GetConfig(cfg).as<std::string>() << " }" << std::endl;
}
}
Expand Down
6 changes: 3 additions & 3 deletions inference-engine/src/mkldnn_plugin/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ Config::Config() {
#if (IE_THREAD == IE_THREAD_TBB || IE_THREAD == IE_THREAD_TBB_AUTO)
#if defined(__APPLE__) || defined(_WIN32)
// 'CORES' is not implemented for Win/MacOS; so the 'NUMA' is default
streamExecutorConfig._threadBindingType = InferenceEngine::IStreamsExecutor::NUMA;
#endif
streamExecutorConfig._threadBindingType = InferenceEngine::IStreamsExecutor::NUMA;
#endif

if (getAvailableCoresTypes().size() > 1 /*Hybrid CPU*/) {
streamExecutorConfig._threadBindingType = InferenceEngine::IStreamsExecutor::HYBRID_AWARE;
}
#endif
#endif

if (!with_cpu_x86_bfloat16())
enforceBF16 = false;
Expand Down

0 comments on commit 050a415

Please sign in to comment.