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

gpl: activate revert if diverge for nangate45/bp_be #2700

Conversation

openroad-ci
Copy link
Collaborator

This PR activates the new option implemented in PR The-OpenROAD-Project/OpenROAD#6561 for nangate45/bp_be, and solves the issue in The-OpenROAD-Project/OpenROAD#6542.

Copy link
Collaborator

@oharboe oharboe left a comment

Choose a reason for hiding this comment

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

Add GPL_ALLOW_REVERT_IF_DIVERGE to scripts/variables.yaml

@@ -9,6 +9,10 @@ fast_route

set global_placement_args {}

if {[info exists ::env(GPL_ALLOW_REVERT_IF_DIVERGE)] && $::env(GPL_ALLOW_REVERT_IF_DIVERGE)} {
lappend global_placement_args {-allow_revert_if_diverge}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Use append_env_var for consistency and to avoid repeating tiny bugs

{*}$::env(GLOBAL_PLACEMENT_ARGS)
-pad_right $::env(CELL_PAD_IN_SITES_GLOBAL_PLACEMENT)] \
$global_placement_args]

Copy link
Collaborator

Choose a reason for hiding this comment

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

use append_env_var here

@@ -5,10 +5,20 @@ load_design 2_floorplan.odb 2_floorplan.sdc
if { [env_var_exists_and_non_empty FLOORPLAN_DEF] } {
puts "FLOORPLAN_DEF is set. Skipping global placement without IOs"
} else {
log_cmd global_placement -skip_io -density [place_density_with_lb_addon] \

set global_placement_args {}
Copy link
Collaborator

Choose a reason for hiding this comment

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

no need to introduce new var, just use append_env_var after set all_args below

Copy link
Contributor

Choose a reason for hiding this comment

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

We would not need the "global_placement_args" in global_place.tcl too if we move the setting of all parameters inside of do_placement, right?

@@ -379,6 +379,12 @@ DPO_MAX_DISPLACEMENT:
description: >
Specifies how far an instance can be moved when optimizing.
default: 5 1
GPL_ALLOW_REVERT_IF_DIVERGE:
description: >
Enable reverting to saved snapshot if a divergence is detected.
Copy link
Collaborator

Choose a reason for hiding this comment

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

this could do with a bit of elaboration. When would the user use this?

Also, isn't this a stopgap feature? Worth mentioning.

Copy link
Collaborator

@oharboe oharboe left a comment

Choose a reason for hiding this comment

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

Looking good!

@gudeh gudeh requested a review from oharboe January 23, 2025 16:25
@gudeh
Copy link
Contributor

gudeh commented Jan 24, 2025

I am going to close this PR because in OR PR we decided to maintain the "revert if diverge" as default behavior, so we don't need to activate it for a specific designs anymore.

@gudeh gudeh closed this Jan 24, 2025
@openroad-ci openroad-ci deleted the secure-gpl-revert-if-diverge branch January 24, 2025 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants