jax.experimental.pallas.mosaic_gpu.TryClusterCancelResult

jax.experimental.pallas.mosaic_gpu.TryClusterCancelResult#

jax.experimental.pallas.mosaic_gpu.TryClusterCancelResult(num_buffers=None)[source]#

Helper function to create Refs for cluster launch control results.

Parameters:

num_buffers (int | None) – Optional argument for specifying the number of buffers to allocate. If None, will return a single 16-byte buffer. If specified, will return a (num_buffers, 16)-shaped buffer.

Returns:

A MemoryRef with the correct shape for holding the opaque cluster launch control result.

Return type:

pallas_core.MemoryRef