Skip to content

gpl: accumulate nonPlaceArea before multiplying density - #11123

Open
LucasYuki wants to merge 2 commits into
The-OpenROAD-Project:masterfrom
The-OpenROAD-Project-staging:gpl-accumulate-nonPlaceArea
Open

gpl: accumulate nonPlaceArea before multiplying density#11123
LucasYuki wants to merge 2 commits into
The-OpenROAD-Project:masterfrom
The-OpenROAD-Project-staging:gpl-accumulate-nonPlaceArea

Conversation

@LucasYuki

@LucasYuki LucasYuki commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Summary

Accumulate the non-place area before multiplying the density to reduce rounding errors.
With this PR, PR #11085 becomes a no-op.

Type of Change

  • Bug fix

Impact

This slightly changes some test results.

Verification

  • [ X ] I have verified that the local build succeeds (./etc/Build.sh).
  • [ X ] I have run the relevant tests and they pass.
  • [ X ] My code follows the repository's formatting guidelines.
  • [ X ] I have signed my commits (DCO).

Related Issues

#11085

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request refactors BinGrid::updateBinsNonPlaceArea in nesterovBase.cpp to accumulate raw non-place areas in a temporary vector before scaling and adding them to the bins, and updates getOverlapArea to return int64_t instead of float. The review feedback suggests wrapping this new accumulation logic in a check to ensure pb_->nonPlaceInsts() is not empty, which avoids unnecessary memory allocation and loop overhead when there are no non-placeable instances.

Comment thread src/gpl/src/nesterovBase.cpp
Signed-off-by: LucasYuki <lucasyuki@yahoo.com.br>
Signed-off-by: LucasYuki <lucasyuki@yahoo.com.br>
@openroad-ci
openroad-ci force-pushed the gpl-accumulate-nonPlaceArea branch from 93a8da1 to 84e99b1 Compare August 18, 2026 15:37
@LucasYuki

Copy link
Copy Markdown
Contributor Author

Blocked by issue #11192.

@LucasYuki
LucasYuki marked this pull request as ready for review August 21, 2026 13:45
@LucasYuki
LucasYuki requested review from a team as code owners August 21, 2026 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant