Performance
CPU measurements on one laptop core. Accelerator measurements below identify their device and workload.
What a run costs
The two-band notched box, 40 × 24 × 6 cells, dx = 0.5 ξ, κ = 2:
| run | cost |
|---|---|
| defaults, no KWT | 0.078 s per tGL: a rung of 1600 tGL in about two minutes |
| KWT with γ̃ = 10 (defaults: stabilised stages and the rotating frame) | ×2.2; the explicit step at the KWT bound would be ten times shorter |
| Runge–Kutta–Chebyshev against Legendre stages, with KWT | −6 % per step at γ̃ = 10, −10 % at γ̃ = 30 |
:open boundary | ×1.2 (×1.03 with KWT) |
| an insulating buffer or a sample carved in vacuum | about ×3 a metal buffer: on the nanowire box, 4.5 ms per step against 1.5 ms without vacuum |
dt_scale = 1 | ×0.5, for onsets (below) |
With matched legacy settings and no KWT, release 2.0 does the operations of release 1.2 at the same cost; with its stabilised stages instead of Euler substeps it is 8 % faster on the notched box at κ = 25.
What it costs in accuracy
- The solver tolerance of the insulating buffer (10−8): after 1000 steps of the nanowire the states differ by 7 × 10−9 in Ψ from those at 10−11, three orders below the scheme's own first-order error in time. A ladder of a notched nanowire gives the same bracket, and its flowing voltages agree to nine digits.
dt_scale = 1for onsets. The delay of the first slip changed by 0.2 % without KWT; with KWT the silent state agreed to six digits and the delays were the same. Quote flowing voltages at the default step: in strong flow the voltage is a few per cent off at dt ≈ 0.04.- The mesh sets the largest error: absolute onsets in the tested flat-faced box carry 5–12 % at dx = 0.5 ξ. The tested polarity ratios and trends were less sensitive; carved surfaces need their own convergence check.
Campaigns
Run one single-threaded process per physical core (OPENBLAS_NUM_THREADS=1). On a laptop the total gain saturates near 2.5
times one process, set by the memory bandwidth. Two polarities as two processes halve the time of one run. Threads within one run
give the same bits but no speed on a laptop (×0.8–1.06 with 2–8 threads); a box of 80 × 48 × 12 at dx = 0.25 ξ costs about 3.5 s
per tGL. Slurm array scripts for a cluster are in examples/.
GPU
The optional gpu/TDGLGPU/ package accelerates ladder cycles with KernelAbstractions kernels and CUDA matrix
products. Install CUDA separately in that project; its README gives the commands and supported combinations. State arrays
remain Float64/ComplexF64, with the same optional Float32 PCG preconditioner as on CPU.
Measurements, verdicts, checkpoints, direct step! calls, open-boundary FFTs and seeded random draws remain on
the host. CPU CI tests the KernelAbstractions CPU backend; it does not certify CUDA. Small meshes may be slower on GPU.
Benchmark the actual mesh and scheme, including transfers; A100 performance cannot be inferred from T4 measurements.
The published validation data include 41 CUDA step configurations, two short ladders and five checkpoint continuations. The table gives medians of three twenty-step batches per path, from a fresh configured state and Stepper, after one discarded warm-up batch. The exact inputs, all samples, tolerances and hashes are included with the data.
| Sample cells / case | Laptop P0 ms/step | T4 batch ms/step | T4 cycle ms/step |
|---|---|---|---|
| 24 × 12 × 6 | 0.261 | 1.355 | 1.393 |
| 48 × 24 × 12 | 2.142 | 2.268 | 2.405 |
| 96 × 48 × 24 | 22.574 | 7.295 | 4.816 |
| 96 × 48 × 24, PCG | 146.370 | 26.903 | 21.040 |
| 80 × 24 × 24, cable | 171.454 | 58.412 | 52.191 |
The T4 batch includes host work inside the accelerated step; the cycle adds upload/download. Both exclude compilation, construction, measurements, checkpoints and protocol. The two paths run separately in a fixed order without GPU clock control; the later cycle can measure faster. Do not subtract the columns to infer transfer cost. These are batch measurements against one laptop core, not whole-run speedups or combined laptop throughput. Older single-batch CUDA measurements remain labelled separately in the data.
--require-gpu rejects CPU fallback for unsupported ladder cycles and reports the backend and step counts.
It does not move the remaining host responsibilities to GPU. A JLD2 restart rebuilds link exponentials on CPU; GPU
continuation is validated within tolerance, not generally to the bit.