Skip to content

Conversation

@gwenzek
Copy link
Contributor

@gwenzek gwenzek commented Sep 12, 2025

Fix bug in XLA where the memory space isn't fully propagated when creating uninitialized buffers.

gwenzek added a commit to zml/zml that referenced this pull request Sep 18, 2025
CPU buffers behave differently from Cuda/Rocm/TPU buffers,
and in particular they are addressable from main memory.
This was annoying and prevented us to add some safety checks that
weren't valid for CPU.

I'm adding a tag to buffers so that we know which target they refer to.

Also there is a bug in PJRT unitialized which doesn't respected the
memory. I've opened openxla/xla#31292
but in the meantime I've a workaround in ZML that uses the regular
.fromHostBuffer.
(I've also a patched version of PJRT plugins in
zml/pjrt-artifacts#41 but not merged yet)
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