Repository navigation
WebGPU
- New backend. The GPUs, and CPU fallback adapters, that a
webgpu.hruntime such as wgpu-native or Dawn offers now run clpeak's tests. Thanks @rjodinchr (#230).- Compute: fp32, fp16 (adapters with
shader-f16), mixed precision, int32 and packed int8 dot product. - Bandwidth: global, workgroup (local), image and host/device transfer.
- Kernel launch latency, round trip only: WebGPU has no calibrated host/device timestamps to time dispatch alone.
- Compute: fp32, fp16 (adapters with
- You supply the runtime. It is loaded when clpeak runs, and the release zips do not include one. On macOS,
brew install wgpu-nativeis found automatically. For a library under another name or path, use--webgpu-lib <path>. - On by default. Where a runtime is found, a plain
clpeakrun now includes WebGPU;--no-webgpuleaves it out. - Adapters. clpeak lists what WebGPU hands out for the high-performance, low-power and fallback requests, so a machine with several GPUs may not show them all.
- wgpu-native. 29.0.1.1 aborts the process on some
webgpu.hcalls, which clpeak does not make with it. On an M1 Pro every row runs: fp32 5.0 TFLOPS and 172 GB/s global bandwidth, against Metal's 5.2 and 180. - Android and iOS builds do not include it.
Building from source
-DCLPEAK_ENABLE_WEBGPU=OFFleaves the backend out. It needs no SDK to build.- The desktop app is built with Flutter 3.50.1 in CI and uses the
material_uipackage. The Android build moves to Gradle 9.3.1 and AGP 9.1.1. - iOS takes ONNX Runtime 1.30.0 from Microsoft's NuGet package, checked against its published SHA-512.
Full Changelog: 3.0.5...3.1.0