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

BufferFromHostBuffer for pre-allocated GPU buffers #23297

Open
drewjenks01 opened this issue Mar 2, 2025 · 0 comments
Open

BufferFromHostBuffer for pre-allocated GPU buffers #23297

drewjenks01 opened this issue Mar 2, 2025 · 0 comments
Labels
GPU XLA on GPU

Comments

@drewjenks01
Copy link

I have built XLA from source using the version Jax 0.4.25 (4ccfe33) uses and am calling the BufferFromHostBuffer function here:

bool is_cpu_platform =
.

I see that there is a fast-path for when you are on CPU and passing a CPU buffer, but there is no option for the same thing with GPU buffers. I want to be able to pass in a pre-allocated GPU buffer and not have XLA make a copy, but rather just point to this buffer like it does with CPU buffers. I'm wondering why this isn't a feature within this function or if this has changed since the version I'm using? I'm considering building in the path myself but wondering if there will be any negative side effects. Thanks!

@aniruthraj aniruthraj added the GPU XLA on GPU label Mar 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GPU XLA on GPU
Projects
None yet
Development

No branches or pull requests

2 participants