Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

fix CID issue1590313, 1590213, 1588539, 1588497, 1588220 (#28541)

Wanglei Shene8d01dc46fd8
diff --git a/src/inference/dev_api/openvino/runtime/threading/istreams_executor.hpp b/src/inference/dev_api/openvino/runtime/threading/istreams_executor.hpp
index efb9d41a4dd..18e7216cf22 100644
--- a/src/inference/dev_api/openvino/runtime/threading/istreams_executor.hpp
+++ b/src/inference/dev_api/openvino/runtime/threading/istreams_executor.hpp
@@ -150,7 +150,7 @@ public:
_cpu_pinning{cpu_pinning},
_cores_limit{cores_limit},
_streams_info_table{std::move(streams_info_table)},
- _rank{rank},
+ _rank{std::move(rank)},
_add_lock(add_lock) {
update_executor_config(_add_lock);
}
diff --git a/src/inference/src/dev/threading/cpu_streams_executor.cpp b/src/inference/src/dev/threading/cpu_streams_executor.cpp
index a10709aa6db..0313c4f5aab 100644
--- a/src/inference/src/dev/threading/cpu_streams_executor.cpp
+++ b/src/inference/src/dev/threading/cpu_streams_executor.cpp
@@ -36,7 +36,7 @@ struct CPUStreamsExecutor::Impl {
: custom::task_scheduler_observer(arena),
_mask{std::move(mask)},
_ncpus(ncpus),
- _cpu_ids(cpu_ids) {}
+ _cpu_ids(std::move(cpu_ids)) {}
void on_scheduler_entry(bool) override {
pin_thread_to_vacant_core(tbb::this_task_arena::current_thread_index(),
_threadBindingStep,
@@ -167,7 +167,7 @@ struct CPUStreamsExecutor::Impl {
_rank = _impl->_config.get_rank();
get_cur_stream_info(stream_id,
_impl->_config.get_cpu_pinning(),
- org_proc_type_table,
+ std::move(org_proc_type_table),
_impl->_config.get_streams_info_table(),
stream_type,
concurrency,
diff --git a/src/inference/src/dev/threading/istreams_executor.cpp b/src/inference/src/dev/threading/istreams_executor.cpp
index 59201baadfd..663c7d138b3 100644
--- a/src/inference/src/dev/threading/istreams_executor.cpp
+++ b/src/inference/src/dev/threading/istreams_executor.cpp
@@ -234,7 +234,7 @@ void IStreamsExecutor::Config::update_executor_config() {
if (_thread_preferred_core_type == ov::hint::SchedulingCoreType::ECORE_ONLY) {
stream_info[PROC_TYPE] = EFFICIENT_CORE_PROC;
stream_info[NUMBER_OF_STREAMS] = _streams;
- _streams_info_table.push_back(stream_info);
+ _streams_info_table.push_back(std::move(stream_info));
} else {
int start = proc_type_table.size() > 1 ? 1 : 0;
std::vector<int> core_types;
diff --git a/src/plugins/intel_cpu/src/cpu_streams_calculation.cpp b/src/plugins/intel_cpu/src/cpu_streams_calculation.cpp
index 6b68afffa71..8b2c7c62092 100644
--- a/src/plugins/intel_cpu/src/cpu_streams_calculation.cpp
+++ b/src/plugins/intel_cpu/src/cpu_streams_calculation.cpp
@@ -514,7 +514,7 @@ std::vector<std::vector<int>> get_streams_info_table(
ALL_PROC);
} else if (stream_info[PROC_TYPE] == MAIN_CORE_PROC) {
if (stream_info[THREADS_PER_STREAM] == proc_socket_table[0][MAIN_CORE_PROC]) {
- streams_info_table.push_back(stream_info);
+ streams_info_table.push_back(std::move(stream_info));
} else {
stream_info[PROC_TYPE] = ALL_PROC;
streams_info_table.push_back(stream_info);
@@ -524,10 +524,10 @@ std::vector<std::vector<int>> get_streams_info_table(
streams_info_table.push_back(stream_info);
stream_info[PROC_TYPE] = HYPER_THREADING_PROC;
stream_info[THREADS_PER_STREAM] = proc_socket_table[0][HYPER_THREADING_PROC];
- streams_info_table.push_back(stream_info);
+ streams_info_table.push_back(std::move(stream_info));
}
} else {
- streams_info_table.push_back(stream_info);
+ streams_info_table.push_back(std::move(stream_info));
}
}