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.
From an Apple M4 Max
Section titled “From an Apple M4 Max”Apple M4 Max (Metal), using the remote RTX 5080 (ms; best of eight runs; measured with 1.0)
| benchmark | this machine | the remote GPU | every GPU | auto, first run | auto, once learned |
|---|---|---|---|---|---|
mandel_deep | 35.0 | 225 | 116 | 34.5 | 34.7 |
mandelbrot | 1.9 | 2.0 | 1.2 | 1.8 | 1.5 |
md5 | 6.4 | 22.4 | 16.6 | 7.8 | 4.4 |
saxpy | 491 µs | 245 | 38.6 | 871 µs | 507 µs |
From an AMD Ryzen 9 9955HX
Section titled “From an AMD Ryzen 9 9955HX”AMD Ryzen 9 9955HX with its integrated Radeon (Vulkan), using the remote RTX 5080 (ms; best of eight runs; measured with 1.0)
| benchmark | this machine | the remote GPU | every GPU | auto, first run | auto, once learned |
|---|---|---|---|---|---|
mandel_deep | 348 | 294 | 227 | 229 | 205 |
mandelbrot | 2.8 | 908 µs | 1.0 | 972 µs | 1.0 |
md5 | 9.3 | 7.6 | 7.5 | 8.9 | 7.5 |
saxpy | 2.4 | 342 | 56.8 | 3.5 | 2.2 |
From a Raspberry Pi 5
Section titled “From a Raspberry Pi 5”Raspberry Pi 5 with its V3D GPU (Vulkan), using the remote RTX 5080 (ms; best of eight runs; measured with 1.0)
| benchmark | this machine | the remote GPU | every GPU | auto, first run | auto, once learned |
|---|---|---|---|---|---|
mandel_deep | 5729 | 636 | 574 | 576 | 575 |
mandelbrot | 64.9 | 1.0 | 1.8 | 1.8 | 1.7 |
md5 | 611 | 130 | 123 | 124 | 121 |
saxpy | 25.3 | 897 | 422 | 33.7 | 26.5 |
What the tables show
Section titled “What the tables show”- A remote GPU pays where a block computes much from little data. From
the Raspberry Pi,
mandel_deepruns about ten times faster on the remote RTX 5080 than on the Pi’s own CPU and GPU, andmandelbrotsome sixty times faster. From the Linux machine,mandelbrotruns three times faster on the remote card, andmandel_deephalf 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:
saxpycrosses the network for every element. - Every GPU together is fastest only sometimes. For
md5from the Pi, its own GPU and the remote card together take half the remote card’s time alone, and formandel_deepfrom the Linux machine a fifth less. More often a slow GPU’s share holds the fast one back. autosettles on the best choice. Once learned,autois 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 butmd5, 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.
Reproducing
Section titled “Reproducing”python3 benchmark/par/remote.pypython3 benchmark/page.pyremote.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.