From 7c273dc2c51a6a7db416b30e4356ec0a101a2b39 Mon Sep 17 00:00:00 2001 From: Wanglei Shen Date: Mon, 21 Aug 2023 20:24:59 +0800 Subject: [PATCH] fix SDL issue (CID 1518459) (#19287) --- src/plugins/intel_cpu/src/cpu_streams_calculation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/intel_cpu/src/cpu_streams_calculation.cpp b/src/plugins/intel_cpu/src/cpu_streams_calculation.cpp index 22a89ecd1ea..64d7cdb4024 100644 --- a/src/plugins/intel_cpu/src/cpu_streams_calculation.cpp +++ b/src/plugins/intel_cpu/src/cpu_streams_calculation.cpp @@ -257,7 +257,7 @@ std::vector> get_streams_info_table(const int input_streams, n_threads_per_stream = static_cast(n_threads / n_streams); } } else { - while (n_streams * 2 <= n_threads_per_stream) { + while ((n_streams * 2 <= n_threads_per_stream) && (n_threads_per_stream > 1)) { n_threads_per_stream = static_cast(n_threads_per_stream / 2); n_streams = static_cast(n_threads / n_threads_per_stream); }