Skip to content

3.1.0

Latest

Choose a tag to compare

@krrishnarraj krrishnarraj released this 26 Nov 13:14
d4fbbc9

WebGPU

  • New backend. The GPUs, and CPU fallback adapters, that a webgpu.h runtime 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.
  • You supply the runtime. It is loaded when clpeak runs, and the release zips do not include one. On macOS, brew install wgpu-native is found automatically. For a library under another name or path, use --webgpu-lib <path>.
  • On by default. Where a runtime is found, a plain clpeak run now includes WebGPU; --no-webgpu leaves 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.h calls, 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=OFF leaves 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_ui package. 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