Skip to content

Device backends against the host

Each table compares one operation on a machine’s GPU with the same operation on its CPU. Every number comes from an mtl5_bench session of a device build (benchmarks/platform.sh --variants cuda, metal, hip or vulkan), in GFLOP/s, and every result was checked against a long-double reference. The fastest memory space at each size is in bold.

Above each table, a chart shows the same numbers: GFLOP/s against the matrix order n, both on log scales. Colour names the machine; the line style names where the operation runs: solid for the CPU, dashed for the GPU on device memory, dotted for the GPU including the copies to and from it. Shared memory is in the tables only, to keep each chart to three lines a machine. Hovering a point in a chart opened on its own shows its value.

spaceoperandswhat is timed
hosthost memorythe host path in the same binary: the system BLAS/LAPACK where the build found one, else MTL5’s generic code
devicedevice memorythe GPU operation only
sharedshared (managed) memorythe GPU operation, including any page migration
copyhost memorycopy to the device, the operation, copy the result back
  • Threads: each machine’s newest session is shown, at the highest thread count published in it; the Sessions table gives the count.
  • A factorization’s GPU time includes MTL5’s checks: the copy of the input it keeps, and reading the diagonal back to decide whether the host must finish it (see the backend pages under Architecture).
  • n/a marks a size the runtime was not run at (a space with no size run, such as Metal’s f64, is a note under its table); FAIL a result that failed its check; — a result that passed its check but has no rate. A size with any of these settles no crossover.

The reference row is the i7-12700K’s CPU on the same problems (benchmarks/platform.sh --variants cpu, the host rows alone: the machine has no GPU runtime). Under each table, a note gives the size from which each GPU beats its own CPU, and a second the size from which it beats the reference. Unified-memory CPUs against the i7-12700K compares the CPUs.

To add a machine, run a device variant there and publish the session (benchmarks/README.md), then rerun this script.

machineruntimedevicetoolkithost librarythreadsclasscommitsession
i7-12700k (reference)cpu——openblas8medium00be0014881c20261204T232542Z
arduino-ventuno-qvulkanAdreno623Vulkan headers 1.3.275openblas4medium00be0014881c20261204T231653Z
jetson-orincudaOrinCUDA 12.6.68openblas6medium00be0014881c20261204T231652Z
mac-mini-m2metalApple M2Metal, Darwin 25.4.0Accelerate8medium00be0014881c20261204T231652Z

gemm (mult, C = A B), f32: GFLOP/s against n on each machine's CPU and GPU, log scales

machineruntimespacen = 256n = 512n = 1024n = 2048
i7-12700k (reference)cpuhost906101310981105
arduino-ventuno-qvulkanhost99.2110120123
arduino-ventuno-qvulkandevice10.615.917.617.4
arduino-ventuno-qvulkanshared10.715.917.317.4
arduino-ventuno-qvulkancopy9.9216.117.117.4
jetson-orincudahost91.1109113117
jetson-orincudadevice42885411521202
jetson-orincudashared24472311201197
jetson-orincudacopy123224529795
mac-mini-m2metalhost1078137013911150
mac-mini-m2metaldevice15079221032717
mac-mini-m2metalshared15375620572698
mac-mini-m2metalcopy33.72256951294
  • arduino-ventuno-q, vulkan: the GPU beats the host in device memory at no size measured; with the copies at no size measured.
  • arduino-ventuno-q, vulkan: the GPU beats the i7-12700k’s CPU in device memory at no size measured; with the copies at no size measured.
  • jetson-orin, cuda: the GPU beats the host in device memory from n = 256 on; with the copies from n = 256 on.
  • jetson-orin, cuda: the GPU beats the i7-12700k’s CPU in device memory from n = 1024 on; with the copies at no size measured.
  • mac-mini-m2, metal: the GPU beats the host in device memory from n = 1024 on; with the copies from n = 2048 on.
  • mac-mini-m2, metal: the GPU beats the i7-12700k’s CPU in device memory from n = 1024 on; with the copies from n = 2048 on.

gemm (mult, C = A B), f64: GFLOP/s against n on each machine's CPU and GPU, log scales

machineruntimespacen = 256n = 512n = 1024n = 2048
i7-12700k (reference)cpuhost419497524528
arduino-ventuno-qvulkanhost57.858.058.358.5
jetson-orincudahost50.955.656.056.3
jetson-orincudadevice24.025.025.225.2
jetson-orincudashared23.224.925.225.2
jetson-orincudacopy15.722.924.024.7
mac-mini-m2metalhost339355318265
  • arduino-ventuno-q, vulkan: device, shared and copy not measured (vulkan does not compute in f64).
  • jetson-orin, cuda: the GPU beats the host in device memory at no size measured; with the copies at no size measured.
  • jetson-orin, cuda: the GPU beats the i7-12700k’s CPU in device memory at no size measured; with the copies at no size measured.
  • mac-mini-m2, metal: device, shared and copy not measured (metal does not compute in f64).

gemv (mult, y = A x), f32: GFLOP/s against n on each machine's CPU and GPU, log scales

machineruntimespacen = 1024n = 2048n = 4096
i7-12700k (reference)cpuhost46827458.7
arduino-ventuno-qvulkanhost18.613.512.9
arduino-ventuno-qvulkandevice2.423.895.59
arduino-ventuno-qvulkanshared2.263.365.69
arduino-ventuno-qvulkancopy0.901.782.79
jetson-orincudahost25.017.514.8
jetson-orincudadevice24.934.942.2
jetson-orincudashared14.728.839.6
jetson-orincudacopy2.143.523.40
mac-mini-m2metalhost11861.529.0
mac-mini-m2metaldevice9.6721.935.3
mac-mini-m2metalshared7.4021.235.0
mac-mini-m2metalcopy1.732.892.95
  • arduino-ventuno-q, vulkan: the GPU beats the host in device memory at no size measured; with the copies at no size measured.
  • arduino-ventuno-q, vulkan: the GPU beats the i7-12700k’s CPU in device memory at no size measured; with the copies at no size measured.
  • jetson-orin, cuda: the GPU beats the host in device memory from n = 2048 on; with the copies at no size measured.
  • jetson-orin, cuda: the GPU beats the i7-12700k’s CPU in device memory at no size measured; with the copies at no size measured.
  • mac-mini-m2, metal: the GPU beats the host in device memory from n = 4096 on; with the copies at no size measured.
  • mac-mini-m2, metal: the GPU beats the i7-12700k’s CPU in device memory at no size measured; with the copies at no size measured.

gemv (mult, y = A x), f64: GFLOP/s against n on each machine's CPU and GPU, log scales

machineruntimespacen = 1024n = 2048n = 4096
i7-12700k (reference)cpuhost23661.222.9
arduino-ventuno-qvulkanhost7.786.436.60
jetson-orincudahost10.57.827.28
jetson-orincudadevice11.915.018.9
jetson-orincudashared9.3613.818.3
jetson-orincudacopy1.651.611.71
mac-mini-m2metalhost77.417.111.6
  • arduino-ventuno-q, vulkan: device, shared and copy not measured (vulkan does not compute in f64).
  • jetson-orin, cuda: the GPU beats the host in device memory from n = 1024 on; with the copies at no size measured.
  • jetson-orin, cuda: the GPU beats the i7-12700k’s CPU in device memory at no size measured; with the copies at no size measured.
  • mac-mini-m2, metal: device, shared and copy not measured (metal does not compute in f64).

LU factorization (lu_factor), f32: GFLOP/s against n on each machine's CPU and GPU, log scales

machineruntimespacen = 256n = 512n = 1024n = 2048
i7-12700k (reference)cpuhost59.0131242421
arduino-ventuno-qvulkanhost22.232.948.372.6
jetson-orincudahost13.527.845.365.5
jetson-orincudadevice9.4712.953.2178
jetson-orincudashared5.4612.151.1172
jetson-orincudacopy8.6012.048.3153
mac-mini-m2metalhost67.6130164132
mac-mini-m2metaldevice2.9511.947.5148
mac-mini-m2metalshared3.0112.347.8145
mac-mini-m2metalcopy2.5210.843.9134
  • arduino-ventuno-q, vulkan: device, shared and copy not measured (vulkan has no device factorizations yet).
  • jetson-orin, cuda: the GPU beats the host in device memory from n = 1024 on; with the copies from n = 1024 on.
  • jetson-orin, cuda: the GPU beats the i7-12700k’s CPU in device memory at no size measured; with the copies at no size measured.
  • mac-mini-m2, metal: the GPU beats the host in device memory from n = 2048 on; with the copies from n = 2048 on.
  • mac-mini-m2, metal: the GPU beats the i7-12700k’s CPU in device memory at no size measured; with the copies at no size measured.

LU factorization (lu_factor), f64: GFLOP/s against n on each machine's CPU and GPU, log scales

machineruntimespacen = 256n = 512n = 1024n = 2048
i7-12700k (reference)cpuhost46.977.5160175
arduino-ventuno-qvulkanhost13.822.232.740.0
jetson-orincudahost9.9718.826.936.4
jetson-orincudadevice4.658.1216.621.7
jetson-orincudashared3.977.9716.321.6
jetson-orincudacopy3.817.6415.620.9
mac-mini-m2metalhost51.380.210896.7
  • arduino-ventuno-q, vulkan: device, shared and copy not measured (vulkan does not compute in f64).
  • jetson-orin, cuda: the GPU beats the host in device memory at no size measured; with the copies at no size measured.
  • jetson-orin, cuda: the GPU beats the i7-12700k’s CPU in device memory at no size measured; with the copies at no size measured.
  • mac-mini-m2, metal: device, shared and copy not measured (metal does not compute in f64).

Cholesky factorization (cholesky_factor), f32

Section titled “Cholesky factorization (cholesky_factor), f32”

Cholesky factorization (cholesky_factor), f32: GFLOP/s against n on each machine's CPU and GPU, log scales

machineruntimespacen = 256n = 512n = 1024n = 2048
i7-12700k (reference)cpuhost80.1215479710
arduino-ventuno-qvulkanhost30.448.767.789.8
jetson-orincudahost20.039.864.386.8
jetson-orincudadevice9.9036.591.3234
jetson-orincudashared3.8225.582.8218
jetson-orincudacopy8.0228.167.9165
mac-mini-m2metalhost206436317573
mac-mini-m2metaldevice16.072.4148300
mac-mini-m2metalshared146306277504
mac-mini-m2metalcopy8.6839.694.7191
  • arduino-ventuno-q, vulkan: device, shared and copy not measured (vulkan has no device factorizations yet).
  • jetson-orin, cuda: the GPU beats the host in device memory from n = 1024 on; with the copies from n = 1024 on.
  • jetson-orin, cuda: the GPU beats the i7-12700k’s CPU in device memory at no size measured; with the copies at no size measured.
  • mac-mini-m2, metal: the GPU beats the host in device memory at no size measured; with the copies at no size measured.
  • mac-mini-m2, metal: the GPU beats the i7-12700k’s CPU in device memory at no size measured; with the copies at no size measured.

Cholesky factorization (cholesky_factor), f64

Section titled “Cholesky factorization (cholesky_factor), f64”

Cholesky factorization (cholesky_factor), f64: GFLOP/s against n on each machine's CPU and GPU, log scales

machineruntimespacen = 256n = 512n = 1024n = 2048
i7-12700k (reference)cpuhost64.8153250339
arduino-ventuno-qvulkanhost21.331.939.448.3
jetson-orincudahost15.726.039.245.6
jetson-orincudadevice2.976.5212.818.1
jetson-orincudashared2.015.8212.518.0
jetson-orincudacopy2.305.9811.617.1
mac-mini-m2metalhost109171146167
  • arduino-ventuno-q, vulkan: device, shared and copy not measured (vulkan does not compute in f64).
  • jetson-orin, cuda: the GPU beats the host in device memory at no size measured; with the copies at no size measured.
  • jetson-orin, cuda: the GPU beats the i7-12700k’s CPU in device memory at no size measured; with the copies at no size measured.
  • mac-mini-m2, metal: device, shared and copy not measured (metal does not compute in f64).