How RAPTOR compares#

The front page gives the headline numbers; this page is organised by the question a reader actually has, each answered from committed cards (each section names its card and the day it was run); the numbers on this page are generated from them.

Fastest arm, every batch size#

The full breakdown lives on eagle’s own performance page; this is the compact version: only the arm that won each cell.

Fastest arm, every batch size (GPU). Device: NVIDIA H100 NVL (compute capability 9.0, 132 SMs).

configuration

N = 1,000,000

N = 10,000,000

fp32

eagle.simulate (eagle picks the launch mode) (9.92 ms)

–

spread, each sample stops at its own time

eagle.simulate (eagle picks the launch mode) (48.9 ms)

hawk + eagle persistent (475 ms)

spread-short

–

eagle.simulate (eagle picks the launch mode) (33.1 ms)

uniform, every sample the same orbit

eagle.simulate (eagle picks the launch mode) (40.8 ms)

eagle.simulate (eagle picks the launch mode) (411 ms)

Fastest arm, every batch size (CPU). Device: AMD EPYC 9B45 (16 logical CPUs).

configuration

N = 1,000,000

spread, each sample stops at its own time

eagle CPU, 8 threads (2.49 s)

uniform, every sample the same orbit

eagle CPU, 8 threads (2.06 s)

spread-short

eagle CPU, 8 threads (136 ms)

Every arm, every column, every N: eagle’s performance page.

Organized by question instead — “my samples finish at different times”, “my batch is dense”, “I need derivatives”, “I want the CPU too”:

My samples finish at different times#

A batch where each sample stops on its own step (the “spread” distribution here) is exactly what eagle’s compaction targets: once enough samples finish, the live ones are packed into the next launch instead of carrying the whole batch along.

  • N = 1,000,000: fastest is eagle_simulate (eagle.simulate (eagle picks the launch mode)), 48.9 ms, of 8 arms run.

  • N = 10,000,000: fastest is eagle_graph_persist (hawk + eagle persistent), 475 ms; eagle.simulate, the one-call API, 477 ms, of 8 arms run.

Full table, this card (NVIDIA H100 NVL, card of 2026-11-05).

My batch is dense (every sample runs the same number of steps)#

At N = 1,000,000 with nothing to compact, warp_kernel (55.1 ms) and eagle_simulate (40.8 ms) are hawk + eagle’s win – a plain per-thread kernel is the better fit once nothing finishes early, and hawk + eagle’s plain graph arm matches it.

Full table, this card (NVIDIA H100 NVL, card of 2026-11-05).

My batches are small#

At the smallest size this card runs (N = 1,000,000), launch and compaction overhead can cost more than they save:

  • fp32: fastest is eagle_simulate (eagle.simulate (eagle picks the launch mode)), 9.92 ms.

  • spread, each sample stops at its own time: fastest is eagle_simulate (eagle.simulate (eagle picks the launch mode)), 48.9 ms.

  • uniform, every sample the same orbit: fastest is eagle_simulate (eagle.simulate (eagle picks the launch mode)), 40.8 ms.

Will it fit on my GPU?#

Same cell as the speed comparison above (N = 1,000,000, spread batch): peak GPU memory the driver accounted to the process, against the state the workload actually needs.

tool

GPU memory

× minimum

NVIDIA Warp

94 MiB

1.3×

eagle.simulate

102 MiB

1.4×

hawk + eagle graph (no compaction)

104 MiB

1.5×

JAX

890 MiB

12×

CuPy

936 MiB

13×

PyTorch with torch.compile

3138 MiB

45×

Array libraries like CuPy, PyTorch and JAX keep a temporary for every operation in a step, so their reservations stack up across the batch; hawk + eagle and NVIDIA Warp keep only the per-sample state the workload itself needs. NVIDIA Warp is lighter than eagle.simulate (1.3×).

I need derivatives#

Every hawk kernel carries its reverse-mode (hawk.diff.vjp) and forward-mode (hawk.diff.jvp) derivative alongside the primal, generated from the same source and run on the GPU or CPU like the kernel itself. raptor’s own demo (examples/autodiff_vs_torch.py, a hand-run script, not a committed card) measured hawk’s vjp/jvp against torch.autograd on a Quadro P2000 – see raptor’s README for those numbers with their own method and caveats.

I want the CPU too#

Every kernel in this family runs unchanged on CPU threads (OpenMP), no GPU, no CUDA toolchain:

  • Adaptive RKF7(8) Kepler orbits, N = 1,000,000: eagle CPU, 8 threads, 2.49 s.

Every number on this page traces to a committed card: eagle’s performance page.

Capabilities, one row each#

NVIDIA H100 NVL: each row is one capability at one batch size, every arm in its own process. The ratio is against the row’s reference arm; below 1 is faster.

row

N

dtype

arm

wall

against reference

wide_forms

65,536

float64

thread

18.2 ms

1.0×

wide_forms

65,536

float64

team

1.77 ms

0.097×

wide_forms

65,536

float64

team_k8

1.69 ms

0.092×

wide_forms

65,536

float64

staged

979 µs

0.053×

wide_forms

65,536

float64

numpy_mask

380 ms

20×

wide_forms

65,536

float64

torch

378 µs

0.020×

wide_forms

65,536

float32

thread

12.3 ms

1.0×

wide_forms

65,536

float32

team

1.37 ms

0.11×

wide_forms

65,536

float32

team_k8

1.16 ms

0.094×

wide_forms

65,536

float32

staged

807 µs

0.065×

wide_forms

65,536

float32

numpy_mask

246 ms

20×

wide_forms

65,536

float32

torch

309 µs

0.025×

steps_fused

65,536

float64

K1

4.65 ms

7.5×

steps_fused

65,536

float64

K8

616 µs

1.0×

steps_fused

65,536

float64

K32

633 µs

1.0×

steps_fused

65,536

float64

jvp_K8

1.10 ms

1.7×

steps_fused

65,536

float64

vjp_K8_fused

4.20 ms

6.8×

steps_fused

65,536

float64

vjp_K8_auto

4.23 ms

6.8×

steps_fused

65,536

float64

warp_loop

21.5 ms

34×

steps_fused

65,536

float64

torch_func

1.13 ms

1.8×

control_flow

1,000,000

float64

guard

10.6 ms

1.0×

control_flow

1,000,000

float64

no_guard

11.8 ms

1.1×

control_flow

1,000,000

float64

jump

11.6 ms

1.0×

control_flow

1,000,000

float64

segmented

772 ms

72×

control_flow

1,000,000

float64

warp

9.43 ms

0.88×

linalg_lane

131,072

float64

hawk

1.66 ms

1.0×

linalg_lane

131,072

float64

cupy

6.44 ms

3.8×

linalg_lane

131,072

float64

torch

failed

–

linalg_lane

131,072

float32

hawk

664 µs

1.0×

linalg_lane

131,072

float32

cupy

4.56 ms

6.8×

linalg_lane

131,072

float32

torch

failed

–

linalg_lane

8,192

float64

hawk

10.5 ms

1.0×

linalg_lane

8,192

float64

cupy

4.54 ms

0.43×

linalg_lane

8,192

float64

torch

8.59 ms

0.81×

linalg_lane

8,192

float32

hawk

5.39 ms

1.0×

linalg_lane

8,192

float32

cupy

2.21 ms

0.41×

linalg_lane

8,192

float32

torch

4.91 ms

0.91×

linalg_team

16

float64

team

65.5 ms

1.0×

linalg_team

16

float64

cupy

19.8 ms

0.30×

linalg_team

16

float64

torch

5.97 ms

0.091×

contraction

65,536

float64

box

29.1 µs

1.0×

contraction

65,536

float64

no_box

28.7 µs

0.98×

contraction

65,536

float64

gemm

51.3 µs

1.7×

contraction

65,536

float64

einsum

162 µs

5.5×

contraction

65,536

float32

box

29.0 µs

1.0×

contraction

65,536

float32

no_box

28.7 µs

0.99×

contraction

65,536

float32

gemm

41.9 µs

1.4×

contraction

65,536

float32

einsum

125 µs

4.3×

fft

100,000

float64

fft

1.08 ms

1.0×

fft

100,000

float64

cupy_fft

1.14 ms

1.0×

lane_set

4,194,304

float64

dense

170 µs

1.0×

lane_set

4,194,304

float64

map

53.5 µs

0.31×

lane_set

4,194,304

float64

prefix

49.6 µs

0.29×

scatter

4,194,304

float64

keyed

393 µs

1.0×

scatter

4,194,304

float64

ordered

1.46 ms

3.7×

scatter

4,194,304

float64

or

467 µs

1.1×

scatter

4,194,304

float64

cupyx_scatter_add

333 µs

0.84×

scatter

4,194,304

float64

np_add_at

15.1 ms

38×

sample_sum

16,777,216

float64

compensated

239 µs

0.21×

sample_sum

16,777,216

float64

ordered

566 µs

0.50×

sample_sum

16,777,216

float64

auto

1.13 ms

1.0×

sample_sum

16,777,216

float64

cell_compensated

186 µs

0.16×

sample_sum

16,777,216

float64

cell_auto

185 µs

0.16×

sample_sum

16,777,216

float64

cupy_sum

71.3 µs

0.063×

mpi_partition

2,000,000

float64

two_ranks

not_run: needs 2 GPUs (this machine has 1); a Kaggle T4 x2 row

–

mpi_partition

2,000,000

float64

one_rank

not_run: needs 2 GPUs (this machine has 1); a Kaggle T4 x2 row

–