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

added valid config check #2753

Merged

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 <[email protected]>
@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
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