Does pmap with CPU backend broadcast it's in_axes=(None) items on CPU RAM? #8613
Unanswered
mohamad-amin
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.
-
I guess the question speaks for itself.
I'm trying to use jax.pmap to parallelize some part of my code on CPU, but I'm facing memory issues. According to my expectations, I should not run into any memory issue unless the broadcasted items in pmap are copied for each CPU.
P.S: I'm using
XLA_FLAGS=--xla_force_host_platform_device_count=32
and my machine has 48 cores where each have 2 threads. So my batches are multiples of 32.Beta Was this translation helpful? Give feedback.
All reactions