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

Refactor early-exit in data_collector into the WorkerPool. #209

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

jacob-hegna
Copy link
Collaborator

@jacob-hegna jacob-hegna commented Jan 31, 2023

This is in preparation for an internal fix to speed up compilations on an internal worker pool implementation. The main point is that the checks for exiting early now are abstracted into a worker pool wrapper, so that distributed worker pools can check for early exiting independently of other hosts.

This PR also includes a function compiler_opt.distributed.worker.lift_futures_through_list which converts a WorkerFuture[List] to List[WorkerFuture]. This is used in the same internal fix mentioned above.

Additionally, make scheduling work a method on the work pool. The local
worker pool will continue to use the buffered scheduler, but alternative
(distributed) worker pools will use alternative strategies.
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.

1 participant