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 batched LU factorization and solve
- Async readback and result extraction
Overview Video¶
The video below was AI-generated by Google NotebookLM based on the WasmGPU codebase and then double-checked by its developer.
Suggested Starting Points¶
- WasmGPU.compute.createPipeline
- WasmGPU.compute.dispatch
- WasmGPU.compute.createStorageBuffer
- WasmGPU.compute.kernels.luFactorF32Batched and WasmGPU.compute.kernels.luSolveF32Batched
- WasmGPU.compute.kernels.luFactorComplex64Batched and WasmGPU.compute.kernels.luSolveComplex64Batched
- WasmGPU.compute.readback.readF32
- WasmGPU.compute.CPUndarray.empty
- WasmGPU.compute.GPUndarray.wrap
Use the sidebar to navigate the full compute API surface.