← GPU results

gpu/linalg_ad_throughput

profile: nvidia-gpuhardware: NVIDIA A100 80GB PCIedate: 2026-11-14 06:24:19Ztenferro: 9a850b061554unit: ms
Accepted result provenance. Source run 43565224663, attempt 1 · raw artifact 14102567160 · provenance and SHA-256 digests. Raw artifacts have finite retention; this artifact download availability ends at 2027-02-12T06:12:54Z (GitHub access required). Expired artifacts are not replaced by another run.

Throughput-regime cases (1)

Grouped 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.

casegroupvs PyTorchvs JAXnot measurednot okverificationflags
linalg_ad_large_grad_sum_qr_jvp_f64_4096grad_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=7

bar = median time (log scale) · shorter (left) is fastertenferro-cuda-trace-deferred-batch149.162 ms

Latency and per-call overhead (2)

Dominated 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.

casegroupvs PyTorchvs JAXnot measurednot okverificationflags
linalg_ad_large_grad_sum_qr_jvp_f64_256grad_sum_qr_jvp----tenferro-cuda-trace-deferred-batch cpu referenceregression
linalg_ad_large_grad_sum_qr_vjp_f64_256grad_sum_qr_vjp----tenferro-cuda-trace-deferred-batch cpu referenceregression

Charts below are ordered best first (smallest ratio).

linalg_ad_large_grad_sum_qr_jvp_f64_256 grad_sum_qr_jvp · n=7

bar = median time (log scale) · shorter (left) is fastertenferro-cuda-trace-deferred-batch2.845 ms

linalg_ad_large_grad_sum_qr_vjp_f64_256 grad_sum_qr_vjp · n=7

bar = median time (log scale) · shorter (left) is fastertenferro-cuda-trace-deferred-batch2.841 ms

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. 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.

Linalg JVP/VJP Benchmark Items

Throughput regime

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 - -

Latency regime

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 - -

Sampling and unsupported routes

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

Loss Definitions