jax.experimental.pallas.tpu_sc module#
TPU SparseCore Extensions to Pallas.
This module is an alias of jax.pallas.tpu_sc, which is the preferred
import path.
Classes#
|
Indices for a gather or a scatter on SparseCore. |
|
|
|
|
Warns that destination semaphores are ignored for push streams. |
|
|
Functions#
|
Bitcasts an array to a different dtype along the minormost dimension. |
|
Packs two arrays according to the given format. |
A parallel loop decorator. |
|
Sorts keys and values, pushing invalid elements to the last positions. |
|
|
Unpacks two arrays according to the given format. |
Memory operations#
|
Performs an atomic add to a ref. |
|
Performs a masked atomic add to a ref. |
|
Scatters an array to a ref, atomically adding to existing values. |
|
Adds value to the |
|
Performs and expanded masked load from a ref. |
|
Gathers an array from a ref. |
Slices the current vector subcore's local VMEM from a VMEM_SHARED ref. |
|
|
Performs a compressed masked store to a ref. |
|
Scatters an array to a ref. |
Reductions and scans#
|
Computes the index of the first true element in the array. |
|
Computes the number of nonzero elements in the array. |
|
Returns the cumulative max of the array along its innermost axis. |
|
Returns the cumulative sum of the array along its innermost axis. |
|
Computes the running duplicate occurrence count of the array. |
Miscellaneous#
Returns the SparseCore information for the current device. |
|
Blocks until all subcores on the same core reach this instruction. |