9a850b061554unit: msGrouped by the regime the suite declares. This regime is a workload class, not a measured compute- or bandwidth-bound classification: a memory-bound case can take the same time here as at a small shape.
Absolute medians on a log time axis. Bars are shorter for faster calls; the dashed line is the best reference for each case.
Verification: analytic compares every element against a closed-form reference and finite-difference compares the directional derivative against a central difference · unverified was measured with no check at all, and its title carries the recorded reason.
| case | group | vs PyTorch | vs JAX | not measured | not ok | verification | flags |
|---|---|---|---|---|---|---|---|
linalg_ad_large_grad_sum_qr_jvp_f64_4096 | grad_sum_qr_jvp | - | - | - | - | tenferro-cuda-trace-deferred-batch finite-difference | - |
Charts below are ordered best first (smallest ratio).
linalg_ad_large_grad_sum_qr_jvp_f64_4096 grad_sum_qr_jvp · n=7Dominated by launch, dispatch and synchronization; these numbers are overhead, not device throughput.
2 of these cases were timed in deferred-batch mode (one retirement per K calls), so each row is the framework's per-call cost amortized over the batch, not a single call's latency.
Verification: analytic compares every element against a closed-form reference and finite-difference compares the directional derivative against a central difference · unverified was measured with no check at all, and its title carries the recorded reason.
| case | group | vs PyTorch | vs JAX | not measured | not ok | verification | flags |
|---|---|---|---|---|---|---|---|
linalg_ad_large_grad_sum_qr_jvp_f64_256 | grad_sum_qr_jvp | - | - | - | - | tenferro-cuda-trace-deferred-batch cpu reference | regression |
linalg_ad_large_grad_sum_qr_vjp_f64_256 | grad_sum_qr_vjp | - | - | - | - | tenferro-cuda-trace-deferred-batch cpu reference | regression |
Charts below are ordered best first (smallest ratio).
linalg_ad_large_grad_sum_qr_jvp_f64_256 grad_sum_qr_jvp · n=7linalg_ad_large_grad_sum_qr_vjp_f64_256 grad_sum_qr_vjp · n=7nvidia-gpugpu/linalg_ad_throughput/tmp/actions-runner/_work/tenferro-benchmark/tenferro-benchmark/benchmarks/gpu/linalg_ad_throughput.yaml2026-11-14T06:24:19.636034+00:009a850b06155405acc99ecd0648829e9e6d3866bacuda:0NVIDIA A100 80GB PCIeGPU-3893cd38-00e0-11b0-a833-6c82285da15480 GiB595.91.0713.212.891900devcontainerunknown/opt/tenferro-benchmark-ci/cuda2.2.011.7.3AMD EPYC 7502 32-Core ProcessorAuthenticAMD12823222madvise (always [madvise] never)madvise (always defer defer+madvise [madvise] never)Linux-6.8.0-147-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.
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.
Rows whose backend name ends in -deferred-batch are throughput mode: each timed sample enqueues K deferred prepared runs (Runtime::run) on one caller-held CUDA engine and pays one native CUDA synchronization barrier, so the reported per-operation time is sample_ms / K. They measure batched throughput and are not comparable with, and never averaged together with, the per-call latency rows above.
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.
Verification modes: cpu_reference (re-executed on the CPU in f64 and compared element by element); finite_difference (directional derivative compared with a central difference of the primal loss at a step derived from f64 precision). Every mode is held to the suite's own rtol/atol.
Compute-bound rows: every case here is over its family's floor in docs/regime-floors.md. They are never averaged with, or read as a ratio against, the other section.
| 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_qr_jvp |
f64 | 4096x4096 |
- | - | 149.162 ± 0.255 | - | - |
Per-call latency rows: the device kernels are a small fraction of each number, so these are not GPU throughput.
| 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_qr_jvp |
f64 | 256x256 |
- | - | 2.845 ± 0.011 | - | - |
| large | grad_sum_qr_vjp |
f64 | 256x256 |
- | - | 2.841 ± 0.008 | - | - |
| Case | Backend | Ops/sample | Samples | Scope / reason |
|---|---|---|---|---|
| linalg_ad_large_grad_sum_qr_jvp_f64_256 | tenferro-cuda-trace-deferred-batch | 64 | 7 | steady_state_batched_host_api_plus_one_retirement_per_k_samples |
| linalg_ad_large_grad_sum_qr_vjp_f64_256 | tenferro-cuda-trace-deferred-batch | 64 | 7 | steady_state_batched_host_api_plus_one_retirement_per_k_samples |
| linalg_ad_large_grad_sum_qr_jvp_f64_4096 | tenferro-cuda-trace-deferred-batch | 64 | 7 | steady_state_batched_host_api_plus_one_retirement_per_k_samples |
grad_sum_qr: loss = sum(Q) + sum(R); w.r.t. input matrix A