CUDA in the browser: what is and is not possible
CUDA is NVIDIA's native programming interface. It is available only to installed programs, so a web page cannot use it. This test uses WebGPU compute shaders instead. On an NVIDIA card those shaders run on the same GPU cores that CUDA uses, reached through the Vulkan or Direct3D 12 driver. The card is loaded with general-purpose computing rather than drawing, which is the same kind of load as in rendering, simulation or machine learning. The test also runs on AMD, Intel and Apple GPUs. For the longer explanation, see WebGPU vs CUDA. A downloadable test with real CUDA is planned.
How to use the compute test
- Close other programs that use the graphics card.
- Choose a Duration and press Start test.
- Watch the GFLOPS chart and the error counter.
- Press Stop to end early, or Share result to get a link.
What the test does
The test repeatedly multiplies 512×512 matrices of single-precision numbers on the GPU. The work is sent in batches whose size adapts automatically to the speed of the card, so a slow integrated GPU and a fast discrete card both stay busy without freezing the page. Each multiplication counts as 2·N³ floating-point operations, and the page converts this into GFLOPS. It also shows the peak value, the number of matrix runs, the number of errors and the adapter name.
Periodically the result is read back and compared with a reference computed on the CPU.
How to read the results
| What you see | What it means |
|---|---|
| Steady GFLOPS, zero errors | The card computes correctly and holds its speed. |
| GFLOPS fall and stay lower than the peak | Thermal or power throttling; see thermal throttling. |
| Errors above zero | The GPU returned wrong results: unstable overclock, overheating or failing video memory. |
| Test stops or the screen goes black | The driver reset under load. |
Limits of a browser test
The multiplication kernel is simple, so GFLOPS is far below the theoretical figure of the card and cannot be compared with vendor numbers or other benchmarks. The browser decides how long a single GPU job may run and how much memory a page may use. The page cannot read temperatures, clocks or fan speed, so use a monitoring tool alongside it. For a visual load, run the GPU stress test; for older browsers, use the WebGL stress test. The full method is in how to stress test a GPU.