Performance

The paper benchmark ran on one Google Colab G4 runtime on 23–24 November 2026, using the model code of CPPWRF release 1.4.0 (a63ed9f) and WRF v4.8.0.

Benchmark protocol

Hardware and builds

One NVIDIA RTX PRO 6000 Blackwell Server Edition (96 GB) and an AMD EPYC 9B45 (24 cores, 48 hardware threads). CPPWRF ran CUDA FP32 fast, CUDA FP32 identity, CUDA FP64 and OpenMP CPU FP64.

WRF used GNU gfortran 14.2, glibc 2.41 and MPICH. The stock real*4 and real*8 builds used -O2 -ftree-vectorize -funroll-loops. The tuned real*4 build used -O3 -march=native. CPPWRF’s CPU FP64 build used -O3 -march=native with contraction disabled.

Timing and layouts

Steady stepping excludes the first step and subtracts timed input and output from subsequent domain 1 steps. With history off, the models write the initial frame only. With hourly history, the paper reports wall time from launch to exit.

WRF uses the fastest of eight screened MPI or MPI + OpenMP layouts for each case and build. CPPWRF’s CPU FP64 uses the faster of 24 and 48 OpenMP threads. Its CUDA builds use one GPU with four OpenMP host threads. Speed-ups are medians of within-block WRF-to-CPPWRF time ratios.

Benchmark cases
Case Configuration Cells Steps Length
C1 P4, radiation every 15 min 119 × 89 × 44 (466k) 1440 24 h from 00 UTC
C2 P4, radiation every 15 min, daytime large domain 359 × 269 × 44 (4.25M) 360 6 h from 06 UTC
C3 P4 with Morrison, radiation every minute 119 × 89 × 44 360 6 h from 00 UTC
C4 P4 with a two-way 5 km nest (120 × 90 × 44), radiation every minute 466k + 475k 360 + 1080 6 h from 00 UTC

All cases start from GFS analyses of 12 October 2026 processed by WPS and real.exe. The base grid uses 15 km spacing, 44 levels and a 60 s time step. The C4 nest uses a 20 s time step. P4 uses WSM6 (Morrison in C3), Kain–Fritsch, YSU, the revised MM5 surface layer, Noah and RRTMG.

Steady stepping with history off

Same-precision speed-ups use stock WRF real*4 for the FP32 builds and stock WRF real*8 for the FP64 builds. Timings use five blocks, with three for CPPWRF CPU FP64.

Median seconds per simulated hour (speed-up in parentheses)
Case WRF real*4 WRF real*4 tuned WRF real*8 GPU FP32 fast GPU FP32 identity GPU FP64 CPU FP64
C1 2.82 2.49 4.37 0.46 (6.16×) 0.53 (5.34×) 1.53 (2.86×) 5.57 (0.79×)
C2 28.7 25.6 50.7 2.72 (10.54×) 2.78 (10.32×) 9.16 (5.53×) 49.7 (1.02×)
C3 11.8 9.04 14.5 1.58 (7.47×) 1.67 (7.07×) 4.93 (2.94×) 12.2 (1.19×)
C4 30.1 24.2 39.9 3.13 (9.66×) 3.58 (8.42×) 9.43 (4.23×) 35.9 (1.11×)

The coefficient of variation of steady times across timed blocks was at most 0.80%.

Process layouts and normalized rates
Process layouts for steady stepping
Case WRF real*4 WRF real*4 tuned WRF real*8 GPU FP32 fast GPU FP32 identity GPU FP64 CPU FP64
C1 sm12x4 sm12x4 sm6x4 1 GPU 1 GPU 1 GPU omp48
C2 sm12x4 sm12x4 sm12x2 1 GPU 1 GPU 1 GPU omp48
C3 sm12x4 sm12x4 sm12x4 1 GPU 1 GPU 1 GPU omp48
C4 sm12x4 sm12x4 sm12x4 1 GPU 1 GPU 1 GPU omp48

smNxT denotes N MPI ranks × T OpenMP threads. omp24 and omp48 denote the corresponding OpenMP thread counts. The normalized rate for C4 counts both domains (466,004 cells × 360 steps and 475,200 cells × 1080 steps).

Nanoseconds per grid cell and step
Case WRF real*4 WRF real*4 tuned WRF real*8 GPU FP32 fast GPU FP32 identity GPU FP64 CPU FP64
C1 101 89.1 156 16.4 18.9 54.6 199
C2 112 100 199 10.7 10.9 35.9 195
C3 423 323 518 56.6 59.8 176 437
C4 265 213 351 27.5 31.5 83.1 316
Simulated years per day of steady stepping
Case WRF real*4 WRF real*4 tuned WRF real*8 GPU FP32 fast GPU FP32 identity GPU FP64 CPU FP64
C1 3.49 3.96 2.25 21.5 18.6 6.45 1.77
C2 0.34 0.38 0.19 3.62 3.55 1.08 0.20
C3 0.83 1.09 0.68 6.22 5.89 2.00 0.81
C4 0.33 0.41 0.25 3.15 2.76 1.04 0.27

Wall time with hourly history

The runs write NetCDF-4 using WRF’s chunking, shuffle and deflate level 2. The 24 h C1 run writes 25 frames per domain. Each 6 h run writes 7. Times and speed-ups are medians across three timed blocks.

Across C1–C4, fast CUDA FP32 was 3.1–7.4× as fast as stock WRF real*4 when both used serial HDF5 compression, and 6.1–8.9× as fast with CPPWRF’s threaded compression.

Wall times, speed-ups and GPU energy for all cases
Median wall time and GPU runtime charges with hourly history
Case and build Wall (s) vs stock WRF real*4 vs stock WRF real*8 CU / day GPU kJ / day
C1 · WRF real*4 84.5 — — — —
C1 · WRF real*4 tuned 78.7 — — — —
C1 · WRF real*8 139.0 — — — —
C1 · GPU FP32 fast 14.0 6.10× 9.98× 0.039 3.0
C1 · GPU FP32 identity 15.7 5.37× 8.81× 0.044 3.3
C1 · GPU FP64 41.4 2.04× 3.36× 0.116 8.5
C1 · GPU FP32 fast, serial HDF5 27.2 3.11× 5.11× 0.076 4.2
C2 · WRF real*4 212.6 — — — —
C2 · WRF real*4 tuned 194.7 — — — —
C2 · WRF real*8 388.8 — — — —
C2 · GPU FP32 fast 23.9 8.88× 16.34× 0.234 25.2
C2 · GPU FP32 identity 24.8 8.56× 15.73× 0.239 25.3
C2 · GPU FP64 67.5 3.14× 5.77× 0.704 67.3
C2 · GPU FP32 fast, serial HDF5 55.4 3.84× 7.01× 0.564 34.2
C3 · WRF real*4 76.0 — — — —
C3 · WRF real*4 tuned 59.8 — — — —
C3 · WRF real*8 96.8 — — — —
C3 · GPU FP32 fast 11.1 6.83× 8.70× 0.115 9.6
C3 · GPU FP32 identity 11.8 6.44× 8.21× 0.121 10.0
C3 · GPU FP64 31.9 2.38× 3.03× 0.345 27.3
C3 · GPU FP32 fast, serial HDF5 14.6 5.19× 6.64× 0.152 10.8
C4 · WRF real*4 186.4 — — — —
C4 · WRF real*4 tuned 150.6 — — — —
C4 · WRF real*8 249.4 — — — —
C4 · GPU FP32 fast 21.1 8.85× 11.84× 0.221 21.2
C4 · GPU FP32 identity 23.9 7.80× 10.44× 0.252 22.8
C4 · GPU FP64 59.8 3.12× 4.16× 0.651 56.2
C4 · GPU FP32 fast, serial HDF5 25.2 7.39× 9.88× 0.264 22.5

CPPWRF normally compresses chunks on host threads. The serial HDF5 build row uses the same fast FP32 binary with CPPWRF_NC_THREADS=0. GPU board energy and Colab compute units (CU) per simulated day count start-up once plus 24 hours of marginal cost. The runtime rate was 10.05 CU per wall-clock hour. The benchmark measured GPU board energy only and recorded no CPU-only runtime rate for WRF.

Exact checks within the benchmark

Comparisons use every variable and frame at tolerance 0, including dimensions, types and attributes, with TITLE excluded. On the AMD host, the default CPPWRF FP64 build uses Intel-equivalent vector log and log10. The CPU FP64 machine-math build uses the host’s versions.

Exact comparisons in the history-on benchmark
Comparison Expected Result
GPU FP64 vs CPU FP64 identical identical in 4 / 4
CPU FP64 (this CPU's vector log) vs WRF real*8 built here, one process identical identical in 4 / 4
CPU FP64 (default: Intel's vector log) vs CPU FP64 (this CPU's vector log) differs on AMD identical in 0 / 4
CPU FP64 (default) vs WRF real*8 built here, one process differs on AMD identical in 0 / 4
GPU FP32 identity vs CPU FP32 identical identical in 4 / 4
CPU FP32 vs WRF real*4 built here, one process informative identical in 0 / 4

The local WRF real*4 comparison uses a vector powf that depends on the host’s approximate reciprocal instruction. CPPWRF’s FP32 build uses the Intel values. The benchmark’s C1–C4 WRF runs were made on the AMD host.

Paper figures

Speed-up by case and WRF build

Speed-up plot comparing CPPWRF builds with three WRF builds
Columns compare CPPWRF with stock WRF real*4, tuned WRF real*4 and WRF real*8 at their fastest screened layouts. The rows show steady stepping with history off, wall time with history off and wall time with hourly history. For each case and build, bars show median speed-ups and whiskers span the smallest to largest per-block ratios. The serial HDF5 bars use fast FP32 with HDF5’s serial filter. Full-size plot

Wall-time breakdown

Wall-time breakdown for C1 through C4, with history off on the left and hourly history on the right
For each case and build, the plot splits the run with median wall time into steady steps, the first step, history output, input reads during stepping and the remaining time. The left panel shows history off. The right panel shows hourly history, where CUDA stepping and output overlap and share a segment. Any CPPWRF input reads during steps count toward stepping or the remaining time. Full-size plot

GPU energy and WRF layout screening

GPU board energy and power, and WRF process layout screening
The upper panels show GPU board energy in Wh per simulated day and steady GPU board power in watts, both with history off. Power bars show the median of five block means, with whiskers spanning their full range. The lower panels show median WRF step time from two 30-minute runs per layout, relative to the fastest screened layout for the same case and build. Full-size plot

Earlier CPU MPI scaling measurements

A separate measurement on one Colab G4 compared WRF real*8 distributed memory with CPPWRF CPU FP64 using MPICH over shared memory. Each rank used one thread. History was off and each layout was timed once.

Selected rank counts and stepping times
Stepping seconds per simulated hour at selected rank counts
Case and ranks WRF real*8 CPPWRF CPU FP64 Speed ratio
P4 · 1 168.7 164.0 1.03
P4 · 8 27.2 23.5 1.16
P4 · 24 10.3 11.2 0.92
P4 · 48 13.8 11.2 1.24
L · 6 87.2 142.2 0.61
L · 24 44.9 49.4 0.91
L · 48 50.0 53.4 0.94
N3 · 4 123.9 139.6 0.89
N3 · 12 49.3 58.0 0.85
N3 · 24 35.8 41.8 0.86
N3 · 48 44.6 47.4 0.94

Speed ratios use the unrounded measurements.

Paper / preprint

In preparation. The paper describes CPPWRF release 1.4.0 and reports the Colab G4 benchmark of its model code at a63ed9f. The benchmark covers one runtime and one GPU model. WRF performance uses GNU builds, with the tuned variant measured for real*4 only.