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 18, 2024
1 parent 5cdfc10 commit e684864
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/inference/src/system_conf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ int get_current_socket_id() {

int get_current_numa_node_id() {
CPU& cpu = cpu_info();
int cur_processor_id = GetCurrentProcessorNumber();;
int cur_processor_id = GetCurrentProcessorNumber();

for (auto& row : cpu._cpu_mapping_table) {
if (cur_processor_id == row[CPU_MAP_PROCESSOR_ID]) {
Expand Down
3 changes: 2 additions & 1 deletion src/plugins/intel_cpu/src/cpu_streams_calculation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,8 @@ std::vector<std::vector<int>> get_streams_info_table(
((input_streams_changed == true) && (input_streams == 1))) {
n_streams = 1;
stream_info[NUMBER_OF_STREAMS] = n_streams;
current_socket_id = proc_type_table.size() == 1 ? proc_type_table[0][PROC_SOCKET_ID] : proc_type_table[1][PROC_SOCKET_ID] ;
current_socket_id =
proc_type_table.size() == 1 ? proc_type_table[0][PROC_SOCKET_ID] : proc_type_table[1][PROC_SOCKET_ID];
if (input_threads > 0) {
if (hint_model_distribution_policy.size() == 0) {
n_threads_per_stream = std::min(input_threads, proc_type_table[0][ALL_PROC]);
Expand Down

0 comments on commit e684864

Please sign in to comment.