Skip to content

Commit 02dfb86

Browse files
committed
adjust number of workers per type
Signed-off-by: Nicolas L. Guidotti <nguidotti@nvidia.com>
1 parent 6740b14 commit 02dfb86

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cpp/src/branch_and_bound/branch_and_bound.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3700,8 +3700,8 @@ mip_status_t branch_and_bound_t<i_t, f_t>::solve(mip_solution_t<i_t, f_t>& solut
37003700
run_deterministic_coordinator(Arow_);
37013701
} else {
37023702
const i_t num_workers = settings_.num_threads;
3703-
const i_t num_bfs_workers = std::max(settings_.num_threads / 2, 1);
3704-
const i_t num_submip_workers = 1;
3703+
const i_t num_bfs_workers = std::max(num_workers / 2, 1);
3704+
const i_t num_submip_workers = std::max(num_workers / 8, 1);
37053705
const i_t num_diving_workers = std::max(num_workers - num_bfs_workers, 1);
37063706
bfs_worker_pool_.init(num_bfs_workers, original_lp_, Arow_, var_types_, symmetry_, settings_);
37073707
rins_worker_pool_.init(

0 commit comments

Comments
 (0)