Skip to content

Commit 28e3c29

Browse files
authored
Merge pull request #8249 from AcKoucher/mpl-fix-graphics
mpl: use single thread when running with graphics
2 parents 69c3701 + 2c9ba92 commit 28e3c29

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

src/mpl/src/hier_rtlmp.cpp

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1645,14 +1645,19 @@ void HierRTLMP::placeChildren(Cluster* parent, bool ignore_std_cell_area)
16451645
sa_batch.push_back(std::move(sa));
16461646
}
16471647

1648-
std::vector<std::thread> threads;
1649-
threads.reserve(sa_batch.size());
1650-
for (auto& sa : sa_batch) {
1651-
threads.emplace_back(runSA<SACoreSoftMacro>, sa.get());
1652-
}
1653-
for (auto& th : threads) {
1654-
th.join();
1648+
if (graphics_) {
1649+
runSA<SACoreSoftMacro>(sa_batch.front().get());
1650+
} else {
1651+
std::vector<std::thread> threads;
1652+
threads.reserve(sa_batch.size());
1653+
for (auto& sa : sa_batch) {
1654+
threads.emplace_back(runSA<SACoreSoftMacro>, sa.get());
1655+
}
1656+
for (auto& th : threads) {
1657+
th.join();
1658+
}
16551659
}
1660+
16561661
remaining_runs -= run_thread;
16571662

16581663
// add macro tilings

0 commit comments

Comments
 (0)