Skip to content

Implement support for Vizier in AutoTuner - #2428

Closed
eszpotanski wants to merge 6 commits into
The-OpenROAD-Project:masterfrom
antmicro:autotune-vizier
Closed

eszpotanski wants to merge 6 commits into
The-OpenROAD-Project:masterfrom
antmicro:autotune-vizier

Conversation

@eszpotanski

@eszpotanski eszpotanski commented Oct 7, 2024 •

Copy link
Copy Markdown
Contributor

This PR extends AutoTuner with a support for Vizier and a few of its multi-objective optimization algorithms. Which are better at finding valid parameters for hard-to-built designs.

It is based on #2487

Dependencies were separated into:

  • tools/AutoTuner[ray] - for Ray Tune,
  • tools/AutoTuner[vizier] - for Vizier.

Vizier and Ray Tune uses the same configuration scheme, but instead of combining metrics into one value, Vizier looks for non-dominated results (list of metrics). Apart from default metrics (like total_power, worst_slack or final_util), a additional few had been added:

  • clk_period-worst_slack - the difference between clock period and worst slack,
  • last_successful_stage - artificial metric representing a number of the latest stage that was successfully build (help to find valid parameters),
  • core_util - when floorplan fails (usually due to too large CORE_UTILIZATION), core_util metric is multiplied by -1 to indicate that it should be smaller (helps to successfully built floorplan).

Metrics can be chosen with -m or --use-metrics argument.

To speed up the optimization process, --to-stage argument was implemented, which chooses stage (and its dependencies) that will be built. It's useful for user interested only in results from e.g. placement. --to-stage works for both Ray Tune and Vizier.

Instructions for preparing and running AutoTuner, as well as described arguments, can be found in InstructionsForAutoTuner.md

@maliberty
maliberty requested a review from luarss October 7, 2024 16:50
@maliberty maliberty added the autotuner Flow autotuner label Oct 7, 2024
@luarss
luarss requested a review from vvbandeira October 8, 2024 01:14
@eszpotanski
eszpotanski force-pushed the autotune-vizier branch 5 times, most recently from 5645d0f to d62adf3 Compare October 17, 2024 11:30
@eszpotanski

Copy link
Copy Markdown
Contributor Author

Unrelated CI fail - the same as on the master branch

@eszpotanski

Copy link
Copy Markdown
Contributor Author

@luarss Did you have a moment to take a look at this PR?

@luarss

luarss commented Oct 19, 2024

Copy link
Copy Markdown
Contributor

@luarss Did you have a moment to take a look at this PR?

@eszpotanski Yes, refactoring is a high priority item for AutoTuner as well. This is next after the smoke tests are merged.

Also, could you possibly split this into 2 PRs - refactoring and new feature?

@eszpotanski

Copy link
Copy Markdown
Contributor Author

Also, could you possibly split this into 2 PRs - refactoring and new feature?

@luarss Sure, I opened #2487 with the code refactor and rebased this PR on top of it

@eszpotanski

Copy link
Copy Markdown
Contributor Author

@luarss @vvbandeira
As #2487 was merged, I rebased this PR and it's ready to review

Comment thread tools/AutoTuner/requirements-vizier.txt Outdated
@@ -0,0 +1,3 @@
jax<=0.4.33
google-vizier[jax]

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.

Could you lock these requirements?

Signed-off-by: Eryk Szpotanski <eszpotanski@antmicro.com>
Signed-off-by: Eryk Szpotanski <eszpotanski@antmicro.com>
Signed-off-by: Eryk Szpotanski <eszpotanski@antmicro.com>
Signed-off-by: Eryk Szpotanski <eszpotanski@antmicro.com>
Signed-off-by: Eryk Szpotanski <eszpotanski@antmicro.com>
Signed-off-by: Eryk Szpotanski <eszpotanski@antmicro.com>
@github-actions

Copy link
Copy Markdown
Contributor

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 21 days if no further activity occurs. Remove the Stale label or comment to keep it open.

@github-actions github-actions Bot added the Stale A stale PR or issue subject to automated closure. label Mar 24, 2026
@github-actions github-actions Bot closed this Apr 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autotuner Flow autotuner Stale A stale PR or issue subject to automated closure.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants