Skip to content

Commit

Permalink
Fix maximum concurrency on Windows with NUMA (#1538)
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitri Mokhov <[email protected]>
  • Loading branch information
dnmokhov authored Oct 25, 2024
1 parent 377a914 commit 948f0bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/migration/recursive_fibonacci/task_emulation_layer.h
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -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) {
Expand Down

0 comments on commit 948f0bb

Please sign in to comment.