Skip to content

Commit 10620e9

Browse files
Fix executor memory leak when "-nstreams 0" (#25778)
### Details: - *create executor config when streams=0* ### Tickets: - *146686*
1 parent cae739b commit 10620e9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/plugins/intel_cpu/src/plugin.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,8 @@ void Plugin::get_performance_streams(Config& config, const std::shared_ptr<ov::M
158158

159159
if (!((0 == streams_set) && config.streamsChanged)) {
160160
get_num_streams(streams, model, config);
161+
} else {
162+
config.streamExecutorConfig = IStreamsExecutor::Config{"CPUStreamsExecutor", streams};
161163
}
162164
}
163165

0 commit comments

Comments
 (0)