File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1366,15 +1366,15 @@ namespace driver {
1366
1366
// be compiled in 2 batches. Integer division yields 26/25 = 1 batch, but
1367
1367
// a single batch of 26 exceeds the limit. The calculation must round up,
1368
1368
// which can be calculated using: `(x + y - 1) / y`
1369
- auto DivideUp = [](size_t Num, size_t Div) -> size_t {
1369
+ auto DivideRoundingUp = [](size_t Num, size_t Div) -> size_t {
1370
1370
return (Num + Div - 1 ) / Div;
1371
1371
};
1372
1372
1373
1373
size_t DefaultSizeLimit = 25 ;
1374
1374
size_t NumTasks = TQ->getNumberOfParallelTasks ();
1375
1375
size_t NumFiles = PendingExecution.size ();
1376
1376
size_t SizeLimit = Comp.getBatchSizeLimit ().getValueOr (DefaultSizeLimit);
1377
- return std::max (NumTasks, DivideUp (NumFiles, SizeLimit));
1377
+ return std::max (NumTasks, DivideRoundingUp (NumFiles, SizeLimit));
1378
1378
}
1379
1379
1380
1380
// / Select jobs that are batch-combinable from \c PendingExecution, combine
You can’t perform that action at this time.
0 commit comments