Skip to content

Commit

Permalink
fix code style issue
Browse files Browse the repository at this point in the history
  • Loading branch information
wangleis committed Dec 30, 2024
1 parent 1c0a6dc commit 8929b24
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/inference/src/os/lin/lin_system_conf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,14 +195,14 @@ CPU::CPU() {
for (int i = 0; i < static_cast<int>(socket_list.size()); i++) {
sockets_map.insert(std::pair<int, int>(socket_list[i], i));
}
int current_numa_nodes = 0;
int cur_numa_nodes = 0;
{
std::lock_guard<std::mutex> lock{_cpu_mutex};
current_numa_nodes = _numa_nodes;
cur_numa_nodes = _numa_nodes;
}
for (int i = 0; i < static_cast<int>(numa_node_list.size()); i++) {
for (int j = 0; j < static_cast<int>(numa_node_list[i].size()); j++) {
numa_node_map.insert(std::pair<int, int>(numa_node_list[i][j], i * current_numa_nodes / _sockets + j));
numa_node_map.insert(std::pair<int, int>(numa_node_list[i][j], i * cur_numa_nodes / _sockets + j));
}
}
for (size_t i = 0; i < valid_cpu_mapping_table.size(); i++) {
Expand Down

0 comments on commit 8929b24

Please sign in to comment.