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

Split propagate function into client components #850

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

Conversation

stephenswat
Copy link
Member

The current detray code exposes primarily a propagate method, but this has an unbounded loop in it. Because callers might want to implement custom load balancing on the stepping process, the current approach may be too coarse. This commit retains the existing propagate method but also adds three new component methods, propagate_init, propagate_step, and propagate_is_complete so that client code can more granularly implement their own, load-balanced propagation.

@stephenswat stephenswat added refactor refactoring the current codes priority: medium medium priority labels Oct 4, 2024
@stephenswat stephenswat force-pushed the refactor/split_prop branch 2 times, most recently from 72feb61 to 3a620aa Compare October 7, 2024 12:32
The current detray code exposes primarily a `propagate` method, but this
has an unbounded loop in it. Because callers might want to implement
custom load balancing on the stepping process, the current approach may
be too coarse. This commit retains the existing `propagate` method but
also adds three new component methods, `propagate_init`,
`propagate_step`, and `propagate_is_complete` so that client code can
more granularly implement their own, load-balanced propagation.
Copy link

sonarcloud bot commented Oct 7, 2024

Copy link
Contributor

@niermann999 niermann999 left a comment

Choose a reason for hiding this comment

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

Once the tests are fine, let's go with this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: medium medium priority refactor refactoring the current codes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants