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

[Pass] Scatter centralized TupleGetItems #1775

Merged
merged 1 commit into from
Feb 17, 2024

Conversation

MasterJH5574
Copy link
Member

This PR introduces a pass that scatters the TupleGetItems of packed parameters centered at the beginning of Relax functions. This is because currently doing TupleGetItems in runtime for hundreds of times will cause significant CPU delay, which can be hidden when these operations are scattered, so that they can run in parallel with GPU kernels.

This PR introduces a pass that scatters the TupleGetItems
of packed parameters centered at the beginning of Relax functions.
This is because currently doing TupleGetItems in runtime for hundreds
of times will cause significant CPU delay, which can be hidden
when these operations are scattered, so that they can run in parallel
with GPU kernels.
@MasterJH5574 MasterJH5574 force-pushed the 02-16-scatter-tuplegetitem branch from edfb1cc to 04587f7 Compare February 17, 2024 01:53
@CharlieFRuan CharlieFRuan merged commit 6cf63bb into mlc-ai:main Feb 17, 2024
1 check passed
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.

2 participants