Utility Functions#
Index Conversion#
|
Convert CSR format index arrays to COO format index arrays. |
|
Convert CSR format index arrays to CSC format. |
|
Convert CSC format index arrays to CSR format. |
|
Convert COO format index arrays to CSC format. |
|
Convert COO format index arrays to CSR format. |
GPU/TPU Random Number Generator#
|
Combined LFSR random number generator by L'Ecuyer (LFSR88). |
|
Combined LFSR random number generator by L'Ecuyer (LFSR113). |
|
Combined LFSR random number generator (LFSR128). |
|
Factory: create a Pallas RNG instance using the globally configured algorithm. |
Return the Pallas RNG class for the current global LFSR algorithm. |
Hybrid CSR Scheduling#
Tuning knobs for the hybrid CSR kernels, which pick a per-row execution tier from the connectivity statistics.
|
The four tunable scheduler constants shared by all hybrid CSR kernels. |
Resolve the hybrid config for this process (memoized — read once). |
|
|
Initialize the per-GPU CSR config: benchmark candidates and (by default) persist the winner. |
Benchmarking#
|
A single benchmark configuration for a primitive. |
|
One row in the benchmark result table. |
|
Unified container for benchmark timing records across all (config × backend) pairs. |
|
Benchmark a function and return timing statistics. |
Kernel Helpers#
|
Define per-input JVP rules for a JAX primitive. |
|
General-purpose batching rule for custom JAX primitives. |
|
Convert a JAX / NumPy dtype to the corresponding Warp scalar type. |
|
Convert a |