jax.experimental.pallas.mosaic_gpu.wait_gmem_to_smem

jax.experimental.pallas.mosaic_gpu.wait_gmem_to_smem#

jax.experimental.pallas.mosaic_gpu.wait_gmem_to_smem(n)[source]#

Waits until at most n cp.async GMEM->SMEM copies are in flight.

Note

This waiting mechanism is only supported on pre-Hopper GPUs, which use the cp.async implementation of jax.experimental.pallas.mosaic_gpu.copy_gmem_to_smem().

Parameters:

n (int) – The maximum number of copies allowed to remain in flight.

Return type:

None