This repository is intended to coordinate maturation of the Futhark WebGPU backend, by containing examples and guides until we figure out how to make them part of Futhark proper.
WebGPU should work in Chrome without enabling unsafe flags, as long as hardware acceleration is enabled.
Useful pages:
chrome://gpu- Verify that hardware acceleration is enabled and inspect GPU/WebGPU status.
chrome://flags/#enable-unsafe-webgpu- Not necessary if hardware acceleration is on (keep default unless you really need it).
chrome://flags/#force-high-performance-gpu- Optional: forces Chrome to prefer the discrete GPU. WebGPU can run on integrated graphics as well, so this is not required.
From an emsdk checkout:
./emsdk list | grep -i installedemcc version 5.0.0 works for the current setup.
In order to confirm the emcc version:
emcc -vIf when you try a webgpu demo, it shows:
Device lost ("destroyed"): Device was destroyed.
Steps that helped:
- confirm hardware acceleration is enabled in
chrome://gpu - do not enable
#enable-unsafe-webgpuunless needed - optionally enable
#force-high-performance-gpuon laptops if the integrated GPU driver is unstable