From 8929b24ca907dfddb80da142b12710c72874bf29 Mon Sep 17 00:00:00 2001 From: "Shen, Wanglei" Date: Mon, 30 Dec 2024 09:11:42 +0800 Subject: [PATCH] fix code style issue --- src/inference/src/os/lin/lin_system_conf.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/inference/src/os/lin/lin_system_conf.cpp b/src/inference/src/os/lin/lin_system_conf.cpp index 49fcff0e445cb5..7c8a7050610a6c 100644 --- a/src/inference/src/os/lin/lin_system_conf.cpp +++ b/src/inference/src/os/lin/lin_system_conf.cpp @@ -195,14 +195,14 @@ CPU::CPU() { for (int i = 0; i < static_cast(socket_list.size()); i++) { sockets_map.insert(std::pair(socket_list[i], i)); } - int current_numa_nodes = 0; + int cur_numa_nodes = 0; { std::lock_guard lock{_cpu_mutex}; - current_numa_nodes = _numa_nodes; + cur_numa_nodes = _numa_nodes; } for (int i = 0; i < static_cast(numa_node_list.size()); i++) { for (int j = 0; j < static_cast(numa_node_list[i].size()); j++) { - numa_node_map.insert(std::pair(numa_node_list[i][j], i * current_numa_nodes / _sockets + j)); + numa_node_map.insert(std::pair(numa_node_list[i][j], i * cur_numa_nodes / _sockets + j)); } } for (size_t i = 0; i < valid_cpu_mapping_table.size(); i++) {