ce9125d0cff4unit: msThis 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
Dominated by launch, dispatch and synchronization; these numbers are overhead, not device throughput.
| case | group | vs PyTorch | vs JAX | not measured | not ok | flags |
|---|---|---|---|---|---|---|
linalg_ad_large_grad_sum_eigh_jvp_f64_256 | grad_sum_eigh_jvp | eager 1.89x trace 1.75x | eager 1.95x trace 1.80x | - | - | eager/torch |
linalg_ad_large_grad_sum_eigh_vjp_f64_256 | grad_sum_eigh_vjp | eager 0.92x trace 1.66x | eager 1.02x trace 1.85x | - | - | trace/eager |
linalg_ad_large_grad_sum_lu_jvp_f64_256 | grad_sum_lu_jvp | trace 1.38x | - | - | - | - |
linalg_ad_large_grad_sum_lu_vjp_f64_256 | grad_sum_lu_vjp | - | trace 1.56x | - | - | - |
linalg_ad_large_grad_sum_qr_jvp_f64_256 | grad_sum_qr_jvp | - | - | - | - | - |
linalg_ad_large_grad_sum_qr_vjp_f64_256 | grad_sum_qr_vjp | - | - | - | - | trace/eager |
linalg_ad_large_grad_sum_solve_jvp_f64_256 | grad_sum_solve_jvp | - | - | - | - | - |
linalg_ad_large_grad_sum_solve_vjp_f64_256 | grad_sum_solve_vjp | trace 0.92x | - | - | - | - |
linalg_ad_large_grad_sum_svd_s_jvp_f64_256 | grad_sum_svd_s_jvp | eager 1.90x trace 1.87x | eager 2.01x trace 1.99x | - | - | eager/torch |
linalg_ad_large_grad_sum_svd_s_vjp_f64_256 | grad_sum_svd_s_vjp | eager 0.95x trace 1.86x | eager 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=7linalg_ad_large_grad_sum_eigh_vjp_f64_256 grad_sum_eigh_vjp · n=7linalg_ad_large_grad_sum_svd_s_vjp_f64_256 grad_sum_svd_s_vjp · n=7linalg_ad_large_grad_sum_lu_jvp_f64_256 grad_sum_lu_jvp · n=7linalg_ad_large_grad_sum_qr_vjp_f64_256 grad_sum_qr_vjp · n=7linalg_ad_large_grad_sum_solve_jvp_f64_256 grad_sum_solve_jvp · n=7linalg_ad_large_grad_sum_eigh_jvp_f64_256 grad_sum_eigh_jvp · n=7linalg_ad_large_grad_sum_lu_vjp_f64_256 grad_sum_lu_vjp · n=7linalg_ad_large_grad_sum_svd_s_jvp_f64_256 grad_sum_svd_s_jvp · n=7linalg_ad_large_grad_sum_qr_jvp_f64_256 grad_sum_qr_jvp · n=7nvidia-gpugpu/linalg_jvp_vjp/tmp/actions-runner/_work/tenferro-benchmark/tenferro-benchmark/data/results/nvidia-gpu/gpu/routine_selection/20261121_082311/gpu_linalg_jvp_vjp.yaml2026-11-21T08:23:11+00:00ce9125d0cff4ee40841120759b5df45252c27f22cuda:0NVIDIA A100 80GB PCIeGPU-98d8618e-77c8-160a-92f2-117e34fd43df80 GiB595.112.0713.212.891900devcontainerunknown/opt/tenferro-benchmark-ci/cuda2.2.011.7.3AMD EPYC 7543 32-Core ProcessorAuthenticAMD12823222madvise (always [madvise] never)madvise (always defer defer+madvise [madvise] never)Linux-6.8.0-138-generic-x86_64-with-glibc2.390-3,64-67; 4-7,68-71; 8-11,72-75; 12-15,76-79; 16-19,80-83; 20-23,84-87; 24-27,88-91; 28-31,92-95; 32-35,96-99; 36-39,100-103; 40-43,104-107; 44-47,108-111; 48-51,112-115; 52-55,116-119; 56-59,120-123; 60-63,124-127enableddevcontainerMedian ± 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.
| 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 |
| 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 |
grad_sum_eigh: loss = sum(eigenvalues); w.r.t. SPD input matrix Agrad_sum_lu: loss = sum(L) + sum(U); w.r.t. input matrix Agrad_sum_qr: loss = sum(Q) + sum(R); w.r.t. input matrix Agrad_sum_solve: loss = sum(solve(A, b)); w.r.t. input matrix A (rhs fixed)grad_sum_svd_s: loss = sum(singular values); w.r.t. input matrix A