/plushcap/analysis/cloudflare/webgpu-in-workers

You can now use WebGPU in Cloudflare Workers

What's this blog post about?

Cloudflare Workers has announced support for WebGPU, a new API that allows developers to access GPU resources directly in the browser. This move follows Cloudflare’s previous collaboration with Mozilla and other technology companies on the development of this new standard. WebGPU aims to address some issues with current APIs like OpenGL or Direct3D, making it easier for developers to use GPUs across different browsers and platforms without worrying about compatibility issues. Cloudflare Workers will be using WebGPU in their Durable Objects feature which allows workers to maintain state over time and communicate with each other efficiently. This new GPU support will allow compute-intensive tasks, such as machine learning inferencing, to be executed more quickly by harnessing the power of GPUs. The company has shared a demo using WebGPU in combination with Workers and ONNX runtime, an open-source high-performance ML inferencing accelerator, for image classification on the browser. Cloudflare plans to merge the workerd WebGPU code into their production environment soon, making it available globally as part of their growing GPU nodes fleet. They believe that this new feature will enable developers to build even more powerful and efficient applications using Cloudflare Workers. REFERENCES: 1. [Cloudflare blog post](https://blog.cloudflare.com/introducing-webgpu-support-for-workers/) 2. [WebGPU specification](https://www.w3.org/TR/2022/WD-webgpu-20220510/) 3

Company
Cloudflare

Date published
Sept. 27, 2023

Author(s)
André Cruz, Celso Martinho

Word count
2823

Hacker News points
None found.

Language
English


By Matt Makai. 2021-2024.