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

[drt] Only spawn new threads when distributed_ is true #6478

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jmolloy
Copy link

@jmolloy jmolloy commented Jan 7, 2025

Before this patch the constructor of boost::asio::thread_pool{1} created a thread, regardless of if distributed_ was true.

Now it is wrapped in an optional so that it is only created if or when distributed_ becomes true.

This means that OpenROAD can be initialized without spawning any new threads (a niche usecase for sure, but useful in certain environments).

Before this patch the constructor of boost::asio::thread_pool{1} created
a thread, regardless of if distributed_ was true.

Now it is wrapped in an optional so that it is only created if or when
distributed_ becomes true.

This means that OpenROAD can be initialized without spawning any new
threads (a niche usecase for sure, but useful in certain environments).

Signed-off-by: James Molloy <[email protected]>
Signed-off-by: jmolloy <[email protected]>
@maliberty maliberty added the drt Detailed Routing label Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
drt Detailed Routing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants