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

drt: Fix pin double count and not appearing info. #6058

Merged
merged 1 commit into from
Oct 31, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions src/drt/src/pa/FlexPA_prep.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1492,7 +1492,6 @@ void FlexPA::initAllAccessPoints()
{
ProfileTask profile("PA:point");
int pin_count = 0;
int pin_count_inform = 1000;

omp_set_num_threads(MAX_THREADS);
ThreadException exception;
Expand All @@ -1515,13 +1514,10 @@ void FlexPA::initAllAccessPoints()

int inst_terms_cnt = static_cast<int>(inst->getInstTerms().size());
#pragma omp critical
for (int i = 0; i < inst_terms_cnt; i++, pin_count++) {
for (int i = 0; i < inst_terms_cnt; i++) {
pin_count++;
if (pin_count % pin_count_inform == 0) {
if (pin_count % (pin_count > 10000 ? 10000 : 1000) == 0) {
logger_->info(DRT, 76, " Complete {} pins.", pin_count);
if (pin_count >= 10000) {
pin_count_inform = 10000;
}
}
}
} catch (...) {
Expand Down
Loading