Skip to content

Commit 952227c

Browse files
committed
Switch off loop splitting if child clique is small
1 parent 08eb55a commit 952227c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

highs/ipm/hipo/factorhighs/FactorHiGHSSettings.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ const double kDynamicDiagCoeff = 1e-24;
5050
// metis
5151
const Int kMetisSeed = 42;
5252

53+
// parallel assembly
54+
const Int kParallelAssemblyThresh = 100;
55+
5356
struct Regul {
5457
double primal{};
5558
double dual{};

highs/ipm/hipo/factorhighs/HybridPackedFormatHandler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ void HybridPackedFormatHandler::assembleChild(Int child_sn,
141141

142142
bool parallel = S_->parTree() || S_->parNode();
143143

144-
if (parallel) {
144+
if (parallel && child_clique_size > kParallelAssemblyThresh) {
145145
// The loop over the columns of the child clique has completely independent
146146
// iterations. The loop is split evenly among the available threads.
147147

0 commit comments

Comments
 (0)