← GPU latency results

gpu/linalg_jvp_vjp

profile: nvidia-gpuhardware: NVIDIA A100 80GB PCIedate: 2026-11-21 08:23:11Ztenferro: ce9125d0cff4unit: ms
Accepted result provenance. Source run 44883416365, attempt 1 · raw artifact 14700186475 · provenance and SHA-256 digests. Raw artifacts have finite retention; this artifact download availability ends at 2027-02-19T08:07:55Z (GitHub access required). Expired artifacts are not replaced by another run.

This suite has no throughput-regime case. Every measured case is declared `latency`, so its results are published as per-call latency and overhead here and on the GPU latency page

Latency and per-call overhead (10)

Dominated by launch, dispatch and synchronization; these numbers are overhead, not device throughput.

casegroupvs PyTorchvs JAXnot measurednot okflags
linalg_ad_large_grad_sum_eigh_jvp_f64_256grad_sum_eigh_jvpeager 1.89x trace 1.75xeager 1.95x trace 1.80x--eager/torch
linalg_ad_large_grad_sum_eigh_vjp_f64_256grad_sum_eigh_vjpeager 0.92x trace 1.66xeager 1.02x trace 1.85x--trace/eager
linalg_ad_large_grad_sum_lu_jvp_f64_256grad_sum_lu_jvptrace 1.38x----
linalg_ad_large_grad_sum_lu_vjp_f64_256grad_sum_lu_vjp-trace 1.56x---
linalg_ad_large_grad_sum_qr_jvp_f64_256grad_sum_qr_jvp-----
linalg_ad_large_grad_sum_qr_vjp_f64_256grad_sum_qr_vjp----trace/eager
linalg_ad_large_grad_sum_solve_jvp_f64_256grad_sum_solve_jvp-----
linalg_ad_large_grad_sum_solve_vjp_f64_256grad_sum_solve_vjptrace 0.92x----
linalg_ad_large_grad_sum_svd_s_jvp_f64_256grad_sum_svd_s_jvpeager 1.90x trace 1.87xeager 2.01x trace 1.99x--eager/torch
linalg_ad_large_grad_sum_svd_s_vjp_f64_256grad_sum_svd_s_vjpeager 0.95x trace 1.86xeager 1.02x trace 1.99x--trace/eager

Charts below are ordered best first (smallest ratio).

linalg_ad_large_grad_sum_solve_vjp_f64_256 grad_sum_solve_vjp · n=7

bar = median time (log scale) · shorter (left) is faster · dashed line = PyTorch (1.624 ms)jax-cuda0.9249 mspytorch-cuda1.624 mstenferro-cuda-eager1.104 ms · 0.68xtenferro-cuda-trace1.487 ms · 0.92x

linalg_ad_large_grad_sum_eigh_vjp_f64_256 grad_sum_eigh_vjp · n=7

bar = median time (log scale) · shorter (left) is faster · dashed line = PyTorch (3.343 ms)jax-cuda3.008 mspytorch-cuda3.343 mstenferro-cuda-eager3.083 ms · 0.92xtenferro-cuda-trace5.565 ms · 1.66x

linalg_ad_large_grad_sum_svd_s_vjp_f64_256 grad_sum_svd_s_vjp · n=7

bar = median time (log scale) · shorter (left) is faster · dashed line = PyTorch (12.653 ms)jax-cuda11.839 mspytorch-cuda12.653 mstenferro-cuda-eager12.029 ms · 0.95xtenferro-cuda-trace23.584 ms · 1.86x

linalg_ad_large_grad_sum_lu_jvp_f64_256 grad_sum_lu_jvp · n=7

bar = median time (log scale) · shorter (left) is faster · dashed line = PyTorch (1.147 ms)jax-cuda0.9964 mspytorch-cuda1.147 mstenferro-cuda-eager2.705 ms · 2.36xtenferro-cuda-trace1.585 ms · 1.38x

linalg_ad_large_grad_sum_qr_vjp_f64_256 grad_sum_qr_vjp · n=7

bar = median time (log scale) · shorter (left) is faster · dashed line = PyTorch (1.455 ms)pytorch-cuda1.455 msjax-cuda1.532 mstenferro-cuda-eager2.128 ms · 1.46xtenferro-cuda-trace2.767 ms · 1.90x

linalg_ad_large_grad_sum_solve_jvp_f64_256 grad_sum_solve_jvp · n=7

bar = median time (log scale) · shorter (left) is faster · dashed line = PyTorch (0.9271 ms)jax-cuda0.8355 mspytorch-cuda0.9271 mstenferro-cuda-eager1.801 ms · 1.94xtenferro-cuda-trace1.491 ms · 1.61x

linalg_ad_large_grad_sum_eigh_jvp_f64_256 grad_sum_eigh_jvp · n=7

bar = median time (log scale) · shorter (left) is faster · dashed line = PyTorch (3.185 ms)jax-cuda3.086 mspytorch-cuda3.185 mstenferro-cuda-eager6.006 ms · 1.89xtenferro-cuda-trace5.558 ms · 1.75x

linalg_ad_large_grad_sum_lu_vjp_f64_256 grad_sum_lu_vjp · n=7

bar = median time (log scale) · shorter (left) is faster · dashed line = PyTorch (0.9015 ms)pytorch-cuda0.9015 msjax-cuda1.019 mstenferro-cuda-eager1.603 ms · 1.78xtenferro-cuda-trace1.589 ms · 1.76x

linalg_ad_large_grad_sum_svd_s_jvp_f64_256 grad_sum_svd_s_jvp · n=7

bar = median time (log scale) · shorter (left) is faster · dashed line = PyTorch (12.579 ms)jax-cuda11.846 mspytorch-cuda12.579 mstenferro-cuda-eager23.847 ms · 1.90xtenferro-cuda-trace23.576 ms · 1.87x

linalg_ad_large_grad_sum_qr_jvp_f64_256 grad_sum_qr_jvp · n=7

bar = median time (log scale) · shorter (left) is faster · dashed line = PyTorch (1.478 ms)pytorch-cuda1.478 msjax-cuda1.575 mstenferro-cuda-eager3.963 ms · 2.68xtenferro-cuda-trace2.821 ms · 1.91x

Original report

GPU Linalg JVP/VJP Benchmark Results

GPU Information

CPU Information

Median ± IQR (ms). Missing backends are shown as -.

tenferro-rs JVP/VJP use trace-mode AdContext on CUDA; PyTorch uses torch.func.jvp / vjp on CUDA. JAX uses an explicitly lowered/compiled whole-operation JIT; compilation and lazy initialization occur before sampling. Primal loss and first-order derivatives with respect to A are both returned; the check that backs each row is stated below, and a row that carries none is marked as not checked. RHS and derivative seeds are prepared before timing. The tenferro-rs CUDA eager column runs the same logical case through the eager API on one caller-held CUDA engine. Unlike the trace row, the eager API exposes no separate preparation step, so its own AD preparation is inside the sample together with the forward pass; the forward and derivative scope matches the trace column. Standard and latency AD rows time one prepared operation plus device completion per call on every backend, repeated in bounded batches. tenferro uses Runtime::run on a reusable caller-held CUDA engine. Fixtures, transfers, graph construction, compilation, preparation and initialization are untimed; output conversion and verification follow the stopped clock. Small rows measure API latency, not kernel throughput. Legacy session-entry measurements require recollection (issue #309). Any unsupported row retains its actual reason in the raw records. Inputs are uploaded to the GPU before timed runs; initial host-to-device transfer is outside the timed region. Timed runs include the host API call and backend-native device synchronization without downloading AD outputs in the timed region.

Linalg JVP/VJP Benchmark Items

suite benchmark dtype shape tenferro-rs CUDA trace tenferro-rs CUDA eager, per call, incl. AD prepare tenferro-rs CUDA trace (deferred batch throughput) PyTorch CUDA JAX CUDA JIT
large grad_sum_eigh_jvp f64 256x256 5.558 ± 0.037 6.006 ± 0.017 - 3.185 ± 0.123 3.086 ± 0.080
large grad_sum_eigh_vjp f64 256x256 5.565 ± 0.015 3.083 ± 0.012 - 3.343 ± 0.166 3.008 ± 0.084
large grad_sum_lu_jvp f64 256x256 1.585 ± 0.006 2.705 ± 0.047 - 1.147 ± 0.004 0.996 ± 0.045
large grad_sum_lu_vjp f64 256x256 1.589 ± 0.006 1.603 ± 0.009 - 0.901 ± 0.003 1.019 ± 0.015
large grad_sum_qr_jvp f64 256x256 2.821 ± 0.019 3.963 ± 0.034 - 1.478 ± 0.010 1.575 ± 0.036
large grad_sum_qr_vjp f64 256x256 2.767 ± 0.014 2.128 ± 0.031 - 1.455 ± 0.004 1.532 ± 0.070
large grad_sum_solve_jvp f64 256x256,rhs=1 1.491 ± 0.006 1.801 ± 0.017 - 0.927 ± 0.010 0.836 ± 0.017
large grad_sum_solve_vjp f64 256x256,rhs=1 1.487 ± 0.005 1.104 ± 0.006 - 1.624 ± 0.034 0.925 ± 0.009
large grad_sum_svd_s_jvp f64 256x256 23.576 ± 0.046 23.847 ± 0.088 - 12.579 ± 0.041 11.846 ± 0.041
large grad_sum_svd_s_vjp f64 256x256 23.584 ± 0.040 12.029 ± 0.015 - 12.653 ± 0.044 11.839 ± 0.049

Sampling and unsupported routes

Case Backend Ops/sample Samples Scope / reason
linalg_ad_large_grad_sum_svd_s_jvp_f64_256 tenferro-cuda-trace 1 15 steady_state_host_api_plus_device_sync
linalg_ad_large_grad_sum_svd_s_vjp_f64_256 tenferro-cuda-trace 1 15 steady_state_host_api_plus_device_sync
linalg_ad_large_grad_sum_qr_jvp_f64_256 tenferro-cuda-trace 1 15 steady_state_host_api_plus_device_sync
linalg_ad_large_grad_sum_qr_vjp_f64_256 tenferro-cuda-trace 1 15 steady_state_host_api_plus_device_sync
linalg_ad_large_grad_sum_eigh_jvp_f64_256 tenferro-cuda-trace 1 15 steady_state_host_api_plus_device_sync
linalg_ad_large_grad_sum_eigh_vjp_f64_256 tenferro-cuda-trace 1 15 steady_state_host_api_plus_device_sync
linalg_ad_large_grad_sum_lu_jvp_f64_256 tenferro-cuda-trace 2 15 steady_state_host_api_plus_device_sync
linalg_ad_large_grad_sum_lu_vjp_f64_256 tenferro-cuda-trace 2 15 steady_state_host_api_plus_device_sync
linalg_ad_large_grad_sum_solve_jvp_f64_256 tenferro-cuda-trace 2 15 steady_state_host_api_plus_device_sync
linalg_ad_large_grad_sum_solve_vjp_f64_256 tenferro-cuda-trace 2 15 steady_state_host_api_plus_device_sync
linalg_ad_large_grad_sum_svd_s_jvp_f64_256 tenferro-cuda-eager 1 15 steady_state_host_api_plus_device_sync
linalg_ad_large_grad_sum_svd_s_vjp_f64_256 tenferro-cuda-eager 1 15 steady_state_host_api_plus_device_sync
linalg_ad_large_grad_sum_qr_jvp_f64_256 tenferro-cuda-eager 1 15 steady_state_host_api_plus_device_sync
linalg_ad_large_grad_sum_qr_vjp_f64_256 tenferro-cuda-eager 1 15 steady_state_host_api_plus_device_sync
linalg_ad_large_grad_sum_eigh_jvp_f64_256 tenferro-cuda-eager 1 15 steady_state_host_api_plus_device_sync
linalg_ad_large_grad_sum_eigh_vjp_f64_256 tenferro-cuda-eager 1 15 steady_state_host_api_plus_device_sync
linalg_ad_large_grad_sum_lu_jvp_f64_256 tenferro-cuda-eager 1 15 steady_state_host_api_plus_device_sync
linalg_ad_large_grad_sum_lu_vjp_f64_256 tenferro-cuda-eager 1 15 steady_state_host_api_plus_device_sync
linalg_ad_large_grad_sum_solve_jvp_f64_256 tenferro-cuda-eager 1 15 steady_state_host_api_plus_device_sync
linalg_ad_large_grad_sum_solve_vjp_f64_256 tenferro-cuda-eager 1 15 steady_state_host_api_plus_device_sync
linalg_ad_large_grad_sum_svd_s_jvp_f64_256 pytorch-cuda 1 15 steady_state_host_api_plus_device_sync
linalg_ad_large_grad_sum_svd_s_vjp_f64_256 pytorch-cuda 1 15 steady_state_host_api_plus_device_sync
linalg_ad_large_grad_sum_qr_jvp_f64_256 pytorch-cuda 2 15 steady_state_host_api_plus_device_sync
linalg_ad_large_grad_sum_qr_vjp_f64_256 pytorch-cuda 2 15 steady_state_host_api_plus_device_sync
linalg_ad_large_grad_sum_eigh_jvp_f64_256 pytorch-cuda 1 15 steady_state_host_api_plus_device_sync
linalg_ad_large_grad_sum_eigh_vjp_f64_256 pytorch-cuda 1 15 steady_state_host_api_plus_device_sync
linalg_ad_large_grad_sum_lu_jvp_f64_256 pytorch-cuda 2 15 steady_state_host_api_plus_device_sync
linalg_ad_large_grad_sum_lu_vjp_f64_256 pytorch-cuda 4 15 steady_state_host_api_plus_device_sync
linalg_ad_large_grad_sum_solve_jvp_f64_256 pytorch-cuda 4 15 steady_state_host_api_plus_device_sync
linalg_ad_large_grad_sum_solve_vjp_f64_256 pytorch-cuda 2 15 steady_state_host_api_plus_device_sync
linalg_ad_large_grad_sum_svd_s_jvp_f64_256 jax-cuda 1 15 steady_state_host_api_plus_device_sync
linalg_ad_large_grad_sum_svd_s_vjp_f64_256 jax-cuda 1 15 steady_state_host_api_plus_device_sync
linalg_ad_large_grad_sum_qr_jvp_f64_256 jax-cuda 2 15 steady_state_host_api_plus_device_sync
linalg_ad_large_grad_sum_qr_vjp_f64_256 jax-cuda 2 15 steady_state_host_api_plus_device_sync
linalg_ad_large_grad_sum_eigh_jvp_f64_256 jax-cuda 1 15 steady_state_host_api_plus_device_sync
linalg_ad_large_grad_sum_eigh_vjp_f64_256 jax-cuda 1 15 steady_state_host_api_plus_device_sync
linalg_ad_large_grad_sum_lu_jvp_f64_256 jax-cuda 4 15 steady_state_host_api_plus_device_sync
linalg_ad_large_grad_sum_lu_vjp_f64_256 jax-cuda 2 15 steady_state_host_api_plus_device_sync
linalg_ad_large_grad_sum_solve_jvp_f64_256 jax-cuda 4 15 steady_state_host_api_plus_device_sync
linalg_ad_large_grad_sum_solve_vjp_f64_256 jax-cuda 4 15 steady_state_host_api_plus_device_sync

Loss Definitions