jax.experimental.pallas.mosaic_gpu.atomic_add

Contents

jax.experimental.pallas.mosaic_gpu.atomic_add#

jax.experimental.pallas.mosaic_gpu.atomic_add(ref, val, *, optimized=True)[source]#

Performs an atomic store-add of the value to the reference.

Note that atomicity is only guaranteed on the element-level and that floating-point addition is not associative, so this op can introduce non-determinism into the kernels.

Parameters:
  • ref (_Ref) – The reference to store the value to.

  • val – The value to store.

  • optimized (bool) – If True, a compilation error will be raised if no optimized implementation for the store is available.

Return type:

None