Expand description
CubeCL WebGPU provider runtime and backend skeleton.
The WebGPU/Metal backend is experimental and implements a narrow operation
subset: explicit transfers, F32/C32 dot_general (and the einsum paths
that lower to it), F32/I32 transpose and compaction, and the Apple Metal
FFT. Elementwise math, reductions, reshape/broadcast, indexing and linear
algebra return typed unsupported errors instead of falling back to CPU. The
devices-and-gpu guide compares this subset with CUDA.
Structs§
- Apple
Context - Explicit Apple shared-allocation context for CPU and Metal backends.
- Apple
Transfer Stats - Explicit host/device transfer counters for one
AppleContext. - WebGpu
Backend - CubeCL WebGPU tensor backend.
- WebGpu
Runtime - CubeCL WebGPU runtime wrapper.
- WebGpu
Runtime Identity - Opaque identity of one exact WebGPU runtime instance.
Functions§
- download_
webgpu_ tensor - Download a CubeCL-managed WebGPU tensor back to host memory.
- upload_
webgpu_ tensor - Upload a host tensor into a CubeCL-managed WebGPU allocation.
- webgpu_
available - Returns
trueif a WebGPU adapter is available for CubeCL. - webgpu_
runtime_ engine_ id - Return the canonical WebGPU runtime engine identifier.
- webgpu_
runtime_ engine_ registration - Build a runtime engine registration for a
WebGpuBackend. - webgpu_
runtime_ engine_ registration_ with_ id - Build a WebGPU runtime engine registration with a caller-selected engine ID.
- webgpu_
runtime_ hardware_ class - Return the canonical WebGPU runtime hardware class.