pub fn compute_cuda_speedup(reports: &[GpuBenchReport]) -> CudaSpeedupReportExpand description
Compute a speedup ratio from a pair of bench reports produced by
GpuBenchHarness::cpu_vs_cuda_sph.
Expects reports[0] to be the CPU report and reports[1] (if present)
to be the CUDA report. Returns CudaSpeedupReport { speedup: None } if
only one report is present (CUDA unavailable).
ยงExample
use oxiphysics_gpu::gpu_bench::{GpuBenchHarness, compute_cuda_speedup};
let mut h = GpuBenchHarness::new();
let reports = h.cpu_vs_cuda_sph(64);
let sr = compute_cuda_speedup(&reports);
assert!(sr.cpu_mean.as_secs_f64() >= 0.0);