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

How does Legion apply to FlexFLow? #811

Closed
AngryBear2 opened this issue Jun 28, 2023 · 2 comments
Closed

How does Legion apply to FlexFLow? #811

AngryBear2 opened this issue Jun 28, 2023 · 2 comments
Assignees
Labels
question Further information is requested

Comments

@AngryBear2
Copy link

Hello, at the SysML conference in 2019, I noticed a question on the spot, you mentioned using Legion as a distributed runtime for FlexFlow, and I had some knowledge about Legion before. Could you provide more documentation or video tutorials on how Legion is used in FlexFlow, or what Legion is used for, and how it interfaces with FlexFlow?

@lockshaw
Copy link
Collaborator

lockshaw commented Jun 30, 2023

Legion is used to coordinate distributed execution in FlexFlow: ordering of tasks, moving tensors between tasks, and partitioning computations. Currently there exist a number of calls to Legion's TaskLauncher and IndexLauncher. For example,

IndexLauncher launcher(ELEMENTBINARY_INIT_TASK_ID,
parallel_is,
TaskArgument(this, sizeof(ElementBinary)),
argmap,
Predicate::TRUE_PRED,
false /*must*/,
0 /*mapper_id*/,
outputs[0]->machine_view.hash());

In the future, #622 will be merged, which provides a more structured interface with Legion.

@lockshaw lockshaw self-assigned this Jun 30, 2023
@lockshaw lockshaw added the question Further information is requested label Jun 30, 2023
@AngryBear2
Copy link
Author

AngryBear2 commented Jun 30, 2023

Thank you so much for reading my questions and helping me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants