From 948f0bbd4cbde2c7cbec2455bd0d75bed4ae6061 Mon Sep 17 00:00:00 2001 From: Dmitri Mokhov Date: Fri, 25 Oct 2024 09:42:08 -0500 Subject: [PATCH] Fix maximum concurrency on Windows with NUMA (#1538) Signed-off-by: Dmitri Mokhov --- examples/migration/recursive_fibonacci/task_emulation_layer.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/migration/recursive_fibonacci/task_emulation_layer.h b/examples/migration/recursive_fibonacci/task_emulation_layer.h index 7252d447a0..e3b67b93e9 100644 --- a/examples/migration/recursive_fibonacci/task_emulation_layer.h +++ b/examples/migration/recursive_fibonacci/task_emulation_layer.h @@ -1,5 +1,5 @@ /* - Copyright (c) 2023 Intel Corporation + Copyright (c) 2023-2024 Intel Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -25,7 +25,7 @@ namespace task_emulation { struct task_group_pool { - task_group_pool() : pool_size(std::thread::hardware_concurrency()), task_submitters(new tbb::task_group[pool_size]) {} + task_group_pool() : pool_size(tbb::this_task_arena::max_concurrency()), task_submitters(new tbb::task_group[pool_size]) {} ~task_group_pool() { for (std::size_t i = 0; i < pool_size; ++i) {