Skip to content

Comments

added valid config check#2753

Merged
maliberty merged 1 commit intoThe-OpenROAD-Project:masterfrom
jeffng-or:at-add-valid-config-check
Jan 31, 2025
Merged

added valid config check#2753
maliberty merged 1 commit intoThe-OpenROAD-Project:masterfrom
jeffng-or:at-add-valid-config-check

Conversation

@jeffng-or
Copy link
Contributor

Added a valid config check to verify things like the global place padding >= detail place padding.

The check is done in the setup() method since we still have the data in a convenient form (dict) vs. dealing with the post processed data string that's held in the self.parameters. The action to skip the config is in the step() method, where we skip calling OR and just return ERROR_METRIC as the metric score.

linting feedback

Signed-off-by: Jeff Ng <jeffng@precisioninno.com>
@jeffng-or jeffng-or force-pushed the at-add-valid-config-check branch from b993ac4 to dd9fa09 Compare January 30, 2025 22:05
@maliberty maliberty enabled auto-merge January 30, 2025 23:13
Copy link
Contributor

Choose a reason for hiding this comment

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

In terms of valid config check, would you prefer to fail fast? I.e. fail at the argparse stage or wait till ray servers are started

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The failure would need to be at the individual run level, not at argparse. In other words, someone could do:

global: 0, 5
detailed 0, 5

then, AT chooses the following for a specific run:

global: 2
detailed: 4

which is invalid and we shouldn't even bother running OR.

I've got a checker that I will commit at some point that handles what we can check at the config file level.

@maliberty maliberty merged commit 536092c into The-OpenROAD-Project:master Jan 31, 2025
7 checks passed
@jeffng-or jeffng-or deleted the at-add-valid-config-check branch February 4, 2025 16:11
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