You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I'm benchmarking some simple kernels like jax.lax.add, jax.lax.subtract, etc., on the TPUv4, and it looks like the kernel gets executed on both cores:
The above is the trace from running jax.lax.abs on a 1x4096x256 tensor. It looks like both cores execute the kernel at the same time.
What I find confusing, though, is that the tensor does not seem to be split between the tensor cores. For example, selecting one of the blocks gives the same HLO for both cores:
I'm not using any Jax primitives to split the work, and I don't understand why it's running the operation on both cores. From the profile, it also looks like CMEM is not being used at all, as the read and write bandwidth utilization for both is zero. Could you please explain the behaviour?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I'm benchmarking some simple kernels like
jax.lax.add,jax.lax.subtract, etc., on the TPUv4, and it looks like the kernel gets executed on both cores:The above is the trace from running jax.lax.abs on a 1x4096x256 tensor. It looks like both cores execute the kernel at the same time.
What I find confusing, though, is that the tensor does not seem to be split between the tensor cores. For example, selecting one of the blocks gives the same HLO for both cores:
I'm not using any Jax primitives to split the work, and I don't understand why it's running the operation on both cores. From the profile, it also looks like CMEM is not being used at all, as the read and write bandwidth utilization for both is zero. Could you please explain the behaviour?
Beta Was this translation helpful? Give feedback.
All reactions