From 5e017dc5d2de0512386b2b0bb2ee4536ce7a0345 Mon Sep 17 00:00:00 2001 From: Fang Xu Date: Mon, 23 Oct 2023 16:48:51 +0530 Subject: [PATCH] fix compilation issue for openmp on windows (#20312) * fix compilation issue for openmp on windows * update based on suggestions --- src/inference/src/dev/threading/cpu_streams_executor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/inference/src/dev/threading/cpu_streams_executor.cpp b/src/inference/src/dev/threading/cpu_streams_executor.cpp index dba0082d647..e61893e132d 100644 --- a/src/inference/src/dev/threading/cpu_streams_executor.cpp +++ b/src/inference/src/dev/threading/cpu_streams_executor.cpp @@ -397,7 +397,7 @@ struct CPUStreamsExecutor::Impl { auto numaNodes = get_available_numa_nodes(); if (_config._streams != 0) { std::copy_n(std::begin(numaNodes), - std::min(static_cast(_config._streams), numaNodes.size()), + std::min(_config._streams, numaNodes.size()), std::back_inserter(_usedNumaNodes)); } else { _usedNumaNodes = numaNodes;