Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

utl: add Progress reporting + gui implementation #6792

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
9 changes: 9 additions & 0 deletions src/drt/src/dr/FlexDR.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
#include "io/io.h"
#include "ord/OpenRoad.hh"
#include "serialization.h"
#include "utl/Progress.h"
#include "utl/exception.h"

BOOST_CLASS_EXPORT(drt::RoutingJobDescription)
Expand Down Expand Up @@ -1827,6 +1828,9 @@ std::vector<frVia*> FlexDR::getLonelyVias(frLayer* layer,
int FlexDR::main()
{
ProfileTask profile("DR:main");
auto reporter = logger_->progress()->startIterationReporting(
"detailed routing", std::min(64, router_cfg_->END_ITERATION), {});

init();
frTime t;
bool incremental = false;
Expand Down Expand Up @@ -1878,10 +1882,15 @@ int FlexDR::main()
ord::OpenRoad::openRoad()->writeDb(
fmt::format("drt_iter{}.odb", iter_).c_str());
}
if (reporter->incrementProgress()) {
break;
}
++iter_;
}

end(/* done */ true);
reporter->end(true);

if (!router_cfg_->GUIDE_REPORT_FILE.empty()) {
reportGuideCoverage();
}
Expand Down
1 change: 1 addition & 0 deletions src/gui/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ if (Qt5_FOUND AND BUILD_GUI)
src/colorGenerator.cpp
src/bufferTreeDescriptor.cpp
src/chartsWidget.cpp
src/GUIProgress.cpp
resources/resource.qrc
)

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/gui/resources/resource.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,8 @@
<file alias="defocus.png">google_icons/round_minusloupe_black_36dp.png</file>
<file alias="undo.png">google_icons/round_undo_black_36dp.png</file>
<file alias="play.png">google_icons/sharp_play_arrow_black_36dp.png</file>
<file alias="cancel.png">google_icons/round_cancel_black_36dp.png</file>
<file alias="expand_more.png">google_icons/round_unfold_more_black_36dp.png</file>
<file alias="expand_less.png">google_icons/round_unfold_less_black_36dp.png</file>
</qresource>
</RCC>
Loading