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

[xla:gpu] Add runtime optimization using frontend attribute #63430

Merged
merged 1 commit into from
Mar 11, 2024

Conversation

copybara-service[bot]
Copy link

[xla:gpu] Add runtime optimization using frontend attribute
_xla_send_recv_validation.

A collective-permute instruction inside a loop may not always send or receive
data that affect the output of the whole module in all iterations. Assume this
information is encoded in frontend attribute _xla_send_recv_validation attached
to the Send and Recv instructions decomposed from such a collective-permute
instruction, the runtime can use this information to skip the invocation of the
NCCL API that performs the Send and Recv operations.

Add tests.

_xla_send_recv_validation.

A collective-permute instruction inside a loop may not always send or receive
data that affect the output of the whole module in all iterations. Assume this
information is encoded in frontend attribute _xla_send_recv_validation attached
to the Send and Recv instructions decomposed from such a collective-permute
instruction, the runtime can use this information to skip the invocation of the
NCCL API that performs the Send and Recv operations.

Add tests.

PiperOrigin-RevId: 614751869
@copybara-service copybara-service bot merged commit 6924b9d into master Mar 11, 2024
@copybara-service copybara-service bot deleted the test_611192382 branch March 11, 2024 19:57
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.

None yet

1 participant