jax.pallas.tpu_sc.fetch_and_add#
- jax.pallas.tpu_sc.fetch_and_add(x_ref, value, *, subcore_id)[source]#
Adds value to the
x_refon another subcore.Be careful to ensure subcores are synchronized between initializing the SMEM (on the target subcore) and adding to it, potentially using
plsc.subcore_barrier().- Parameters:
- Returns:
The value of
x_refon the specified subcore before addingvalue.- Return type: