Mixing CPU and GPU data and code #12636
Unanswered
che-shr-cat
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
Could you please explain what happens when you JIT-compile code for GPU and send CPU-committed data (or vice versa) to the compiled function? Is the data gets copied to the corresponding device in this case?
JAX does not allow operations between data committed to different devices but allows using data committed to one device in the function compiled for another device. Is it done intentionally? What's the reason behind this?
Example code:
Beta Was this translation helpful? Give feedback.
All reactions