Compute¶
The compute subsystem provides WebGPU compute workflows, ndarray abstractions, pipeline helpers, async readback utilities, and built-in kernels for copy, reductions, arg-reductions, scan, histogram, compact, radix sort, scaling, and batched LU factorization and solve.
In This Section¶
- Compute pipeline creation and dispatch
- CPU/GPU ndarray lifecycle and residency
- Storage/uniform buffer management
- Built-in compute kernels, including typed vector arithmetic, dot products, GEMM, stable key/value radix sort, and batched LU factorization and solve
- Async readback and result extraction
Suggested Starting Points¶
- WasmGPU.compute
- compute.createPipeline
- compute.dispatch
- compute.createStorageBuffer
- compute.kernels.reduceF32
- compute.kernels.gemmF32
- compute.kernels.radixSortPairsU32
- compute.kernels.luFactorF32Batched
- compute.readback.readF32
- compute.CPUndarray.empty
- compute.GPUndarray.wrap
Use the sidebar to navigate the full compute API surface.