fix compilation issue for openmp on windows (#20312)

* fix compilation issue for openmp on windows

* update based on suggestions
This commit is contained in:
Fang Xu authored and GitHub committed 2023-10-23 15:18:51 +04:00
1 parent b67cff7cd5
commit 5e017dc5d2
1 file changed
+1 -1
@@ -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<std::size_t>(_config._streams), numaNodes.size()),
std::min<std::size_t>(_config._streams, numaNodes.size()),
std::back_inserter(_usedNumaNodes));
} else {
_usedNumaNodes = numaNodes;