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

use keyed jagged index select for lengths permute #1719

Closed
wants to merge 1 commit into from

Conversation

joshuadeng
Copy link
Contributor

Summary:
we've seen better performance and gpu util from switching to keyed_jagged_index_select_dim1 for permuting values.

the traces also show that there is further performance gains to be had by switching lengths permute to use keyed_jagged_index_select_dim1 as well.

for example:
the permute 1d lengths takes the most time, while in the past the permute 1d for values took even longer but with keyed_jagged_index_select_dim1 can barely be seen
{F1456534243}
https://www.internalfb.com/intern/perfdoctor/trace_view?filepath=tree/traces/dynocli/aps-combo2_uhm_igfm_200x_baseline-ac3cbf3708/0/rank-1.Feb_08_22_34_41.5280.pt.trace.json.gz&bucket=aps_traces

Differential Revision: D53776313

Summary:
we've seen better performance and gpu util from switching to keyed_jagged_index_select_dim1 for permuting values.

the traces also show that there is further performance gains to be had by switching lengths permute to use keyed_jagged_index_select_dim1 as well.

for example:
the permute 1d lengths takes the most time, while in the past the permute 1d for values took even longer but with keyed_jagged_index_select_dim1 can barely be seen
 {F1456534243}
https://www.internalfb.com/intern/perfdoctor/trace_view?filepath=tree/traces/dynocli/aps-combo2_uhm_igfm_200x_baseline-ac3cbf3708/0/rank-1.Feb_08_22_34_41.5280.pt.trace.json.gz&bucket=aps_traces

Differential Revision: D53776313
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Feb 20, 2024
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D53776313

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants