Skip to content

Performance: networked

xcd, the par daemon, serves a machine’s GPUs to programs on others (see par). Here it runs on a Windows machine with an RTX 5080, on the local network, and three machines use it: an Apple MacBook Pro with an M4 Max, whose own GPU is fast; a Linux machine with an AMD Ryzen 9 9955HX, whose only GPU is integrated; and a Raspberry Pi 5, whose small V3D GPU it reaches over gigabit Ethernet. Each table gives the xcc release it was measured with.

Each program runs five ways: on the machine alone (XC_PAR_REMOTE=none), on the remote GPU alone (XC_PAR_WORKERS=remote), on every GPU, the machine’s own and the remote one (XC_PAR=gpus), and twice as auto chooses with the remote GPU among its choices. auto, first run starts from empty settings, so the program spends its runs measuring each candidate, and its best is the best run while it measures. auto, once learned is a later run of the program, after one run has measured and kept its choice: what a program settles on. A remote-only figure counts only if every block ran on the remote GPU. Every mode’s checksum must agree.

Apple M4 Max (Metal), using the remote RTX 5080 (ms; best of eight runs; measured with 1.0)

benchmarkthis machinethe remote GPUevery GPUauto, first runauto, once learned
mandel_deep35.022511634.534.7
mandelbrot1.92.01.21.81.5
md56.422.416.67.84.4
saxpy491 µs24538.6871 µs507 µs

AMD Ryzen 9 9955HX with its integrated Radeon (Vulkan), using the remote RTX 5080 (ms; best of eight runs; measured with 1.0)

benchmarkthis machinethe remote GPUevery GPUauto, first runauto, once learned
mandel_deep348294227229205
mandelbrot2.8908 µs1.0972 µs1.0
md59.37.67.58.97.5
saxpy2.434256.83.52.2

Raspberry Pi 5 with its V3D GPU (Vulkan), using the remote RTX 5080 (ms; best of eight runs; measured with 1.0)

benchmarkthis machinethe remote GPUevery GPUauto, first runauto, once learned
mandel_deep5729636574576575
mandelbrot64.91.01.81.81.7
md5611130123124121
saxpy25.389742233.726.5
  • A remote GPU pays where a block computes much from little data. From the Raspberry Pi, mandel_deep runs about ten times faster on the remote RTX 5080 than on the Pi’s own CPU and GPU, and mandelbrot some sixty times faster. From the Linux machine, mandelbrot runs three times faster on the remote card, and mandel_deep half as fast again on its own GPU and the remote card together.
  • It does not pay where the machine’s own GPU is already fast, as on the M4 Max, or where a block moves more than it computes: saxpy crosses the network for every element.
  • Every GPU together is fastest only sometimes. For md5 from the Pi, its own GPU and the remote card together take half the remote card’s time alone, and for mandel_deep from the Linux machine a fifth less. More often a slow GPU’s share holds the fast one back.
  • auto settles on the best choice. Once learned, auto is as fast as the best of the other columns, or within a few percent of it, on the M4 Max, on the Linux machine, and on the Pi for all but md5, where it takes 319 ms against 254 ms for both GPUs together. Its first run is slower where it has several candidates to measure, the remote GPU among them: it runs each twice, and keeps the fastest for every run after.
python3 benchmark/par/remote.py
python3 benchmark/page.py

remote.py starts xcd on the configured GPU machine and measures from this machine and the configured Linux host; --clients pi measures from the configured Raspberry Pi.