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

Update XLA and fix infeed on the GPU #1487

Merged
merged 2 commits into from
May 21, 2024
Merged

Update XLA and fix infeed on the GPU #1487

merged 2 commits into from
May 21, 2024

Conversation

jonatanklosko
Copy link
Member

This updates XLA to the latest revision (xla v0.7.0 already released).

When testing on the GPU, I noticed that infeed is broken. So far we had different logic for CPU and GPU, and I managed to unify it into a single code path. See the comment in exla_client.cc for details.

// [1]: https://github.com/openxla/xla/blob/fd58925adee147d38c25a085354e15427a12d00a/xla/service/cpu/ir_emitter.cc#L449-L450
// [2]: https://github.com/openxla/xla/blob/fd58925adee147d38c25a085354e15427a12d00a/xla/service/cpu/cpu_runtime.cc#L222
// [3]: https://github.com/openxla/xla/blob/fd58925adee147d38c25a085354e15427a12d00a/xla/service/cpu/cpu_xfeed.cc#L178
// [4]: https://github.com/openxla/xla/blob/fd58925adee147d38c25a085354e15427a12d00a/xla/service/gpu/runtime/infeed_thunk.cc#L40-L41
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Beautiful explanation 👏

@jonatanklosko jonatanklosko merged commit e26112d into main May 21, 2024
6 of 8 checks passed
@jonatanklosko jonatanklosko deleted the jk-update-xla branch May 21, 2024 18:15
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.

3 participants