tab/labGitHub
GPU computing lab

CUDA in a
Linux tab.

Fly through a gyroid tunnel on your GPU. A CUDA program running inside this tab’s isolated Linux guest casts a ray for every pixel through WebGPU.

Move the camera, then switch to Ray steps to see where the kernel works hardest.

Build a kernel with Rust
Gyroid fly-through
tunnel.cu ↗
Recorded preview
Booting Linux…640 × 360 · 230,400 rays
Mandelbrot set rendered by the Rust and CUDA example
Rust + CUDA

Build the Mandelbrot renderer

Edit the Rust driver or its CUDA kernel, then compile with Cargo inside Linux.

Open playground

CUDA shell

Run another kernel or type a command in the same guest that renders the tunnel.

Full terminal ↗
›_ Linux terminal/opt/cuda
Preparing Linux…
Isolated Linux guestOn your device · guest networking disabled

Inside the tab

The guest has an ARM64 CPU, a temporary filesystem and no internet connection. Your browser downloads the tools. The CUDA bridge translates supported kernels to WGSL and sends their work to WebGPU.

Inspect a live guest · Explore the DuckDB data lab

Credits & source

Built with unkernel, cudawg, Alpine Linux, DuckDB, xterm.js and CodeMirror. Licenses and source · View repository