Skip to content

Commit bb70116

Browse files
committed
gpl: set setSkipIoMode(true) in Replace::getUniformTargetDensity
We may not have placed the bterms yet when -skip_io is about to be used and this avoids an error (eg 3_1_place_gp_skip_io). Signed-off-by: Matt Liberty <[email protected]>
1 parent 35165a2 commit bb70116

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/gpl/src/replace.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,8 @@ float Replace::getUniformTargetDensity(int threads)
442442
log_->info(GPL, 22, "Initialize gpl and calculate uniform density.");
443443
log_->redirectStringBegin();
444444

445+
setSkipIoMode(true); // in case bterms are not placed
446+
445447
float density = 1.0f;
446448
if (initNesterovPlace(threads)) {
447449
density = nbVec_[0]->getUniformTargetDensity();

0 commit comments

Comments
 (0)