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

Impove tasklet composition extensibility #397

Merged
merged 1 commit into from
Apr 21, 2023
Merged

Impove tasklet composition extensibility #397

merged 1 commit into from
Apr 21, 2023

Commits on Apr 19, 2023

  1. Impove tasklet composition extensibility

    This PR improves the extensibility of tasklet composition by allowing the developer to extend the tasklet set on the original `Composer` by declaring new tasklets under `CloneComposer` context and then use the composer to get originally implmented tasklets by alias and perform composition on them.
    Implemented tasklet/composer operations:
    - `insert_before` which inserts a tasklet before the target tasklet
    - `insert_after` which inserts a tasklet after the target tasklet
    - `replace_with` which replaces the target tasklet with the new tasklet
    - `remove` which removes the target tasklet
    
    The implemented operations work with loop edges, except for `remove` which will raise NotImplementedError if the target tasklet has loop edges.
    
    This PR demonstrates the extensibility of tasklet composition by refactoring the existing coord_syncfl mode to use the new extensibility (demonstrating the reduction in LOC needed to achieve same results).
    lkurija1 committed Apr 19, 2023
    Configuration menu
    Copy the full SHA
    f291383 View commit details
    Browse the repository at this point in the history