RAPTOR#

RAPTOR

Write the code for one sample. Run a million of them.

One sample is one independent simulation: you write its step once, in Python.

A million samples, each stopping at its own time: 48.9 ms and 102 MiB on NVIDIA H100 NVL, 2.3× faster than NVIDIA Warp, 16× faster than PyTorch with torch.compile, 25× faster than JAX and 190× faster than CuPy. The same Python source runs on your CPU.

When every sample runs the same orbit, eagle.simulate is the faster: 40.8 ms for eagle.simulate, 55.1 ms for NVIDIA Warp.

Start here Download the notebook Open in Colab pip install "raptor-hawk[cuda12]" "raptor-eagle[cuda12]" pip install raptor-hawk raptor-eagle without an NVIDIA GPU (the CPU route). Wheels: Linux x86_64 and aarch64, macOS 15+ on Apple silicon; Windows builds from source.
Each line is a sample, each drop where it finished; then the cases they become.

Let mathematics reveal the structure of physics. Let modern computing carry the computational burden. Why RAPTOR is built this way

Versatile, lean, performant#

  1. sampleone independent simulation
  2. laneone run of the kernel body, on a line or a grid
  3. carda measured record for one device

Versatile#

One kernel, many fields. Pick one for a worked case.

A shaded mesh Heat on a plate Pool waves Projectile paths Binning histograms See the gallery

Lean#

Header-only C++Nothing extra to link.
Low memoryA million samples sit near the bare minimum state.
Unused features cost nothingSame code, same launch speed; tests check it against the previous release.

Performant#

48.9 ms

1,000,000 samples (adaptive RKF7(8) Kepler orbits), each stopping at its own time

2.3×–190× faster

than NVIDIA Warp (2.3×), JAX (25×), CuPy (190×), PyTorch with torch.compile (16×) — 1,000,000 samples finishing at different times

9.1×–30× less GPU memory

than CuPy and PyTorch with torch.compile — a million samples in 102 MiB, 1.4× the bare minimum state (CuPy 13×, PyTorch with torch.compile 45×)

Where it ties:

Measured on NVIDIA H100 NVL. NVIDIA Warp’s per-thread kernel is the fastest arm in 0 of the 6 RK4 cells this card runs.

Good for

  • independent per-element updates
  • grids and stencils
  • ensembles whose samples stop early
  • assembly and binning
  • graphs mixing host and GPU steps

Hands off to others

  • dense tensors and training: PyTorch or JAX, arrays cross without a copy
  • sparse direct solvers: not covered
  • several GPUs or MPI ranks: not in the docs yet

How it compares#

Wall time for a million samples, each stopping at its own step. Pick the hardware, then the device.

1,000,000 samples, each stopping at its own time. Log scale; the axis runs from 30.5 ms to 14.9 s, a margin around the fastest and the slowest bar shown. Measured on NVIDIA H100 NVL (compute capability 9.0, 132 SMs), card of 2026-11-05. Every tool, every N, and where each one fits.

Host CPU INTEL(R) XEON(R) GOLD 6526Y; GPU driver 560.35.03; CUDA runtime 12.9, driver API 12.6; Warp 1.17.0, JAX 0.11.2, PyTorch 2.12.1+cu126, CuPy 14.2.0. Card file: card_nvidia-h100-nvl.json.

Memory, as a multiple of what the samples need

1,000,000 samples, each stopping at its own time. Log scale; the axis runs from 1.45 s to 88.4 s, a margin around the fastest and the slowest bar shown. Measured on NVIDIA L4 (compute capability 8.9, 58 SMs), card of 2026-11-04. Every tool, every N, and where each one fits.

Host CPU Intel(R) Xeon(R) CPU @ 2.20GHz; GPU driver 580.178.04; CUDA runtime 12.9, driver API 13.0; Warp 1.17.0, JAX 0.11.2, PyTorch 2.12.1+cu129, CuPy 14.2.0. Card file: card_nvidia-l4.json.

Memory, as a multiple of what the samples need

SimulationAICPUCPU and GPUGPU
SimulationAICPUCPU andGPUGPU

first-class: a glowing icon with its name not first-class: a faint icon on the middle band, no name number: the grade, 0 to 5; blank when no source confirms one

raptor: 13 capabilities, 12 on both CPU and GPU, 1 GPU only, 12 on the Simulation side and 1 on the AI side.

Show details
  • Fixed-step ODEs CPU ✓ GPU ✓ grade 5/5 A step written for one sample, run over the batch until every sample is done.
  • Differentiable sensitivities CPU ✓ GPU ✓ grade 5/5 Generated forward- and reverse-mode derivatives, read by jax.grad, torch autograd and wp.Tape.
  • Zero-copy hand-over (DLPack) CPU ✓ GPU ✓ grade 5/5 Runs inside your JAX, PyTorch, Warp, CuPy and NumPy programs, and theirs inside its batches; DLPack hand-over certified with all five.
  • Per-sample models and RHS CPU ✓ GPU ✓ grade 4/5 You write one step of one sample; the batch is launched for you.
  • Ensembles and Monte Carlo CPU ✓ GPU ✓ grade 5/5 Many independent samples in one batched run.
  • Divergent workloads CPU ✓ GPU ✓ grade 5/5 Finished samples are compacted out, so each launch covers only the samples still running.
  • Events and early exit CPU ✓ GPU ✓ grade 5/5 A sample stops on its own condition and leaves the work.
  • Adaptive ODEs, embedded pairs CPU ✓ GPU ✓ grade 5/5 eagle.simulate runs an embedded RKF7(8) pair with per-sample step control.
  • Deployment outside Python CPU ✓ GPU ✓ grade 5/5 A compiled kernel is embedded in a C++ program and run there; hawk's c target also writes standalone MISRA C, with no Python and no eagle.
  • Host and GPU steps in one graph CPU – GPU ✓ grade 4/5 Host nodes, copies and GPU kernels sit in one eagle graph, captured once and replayed.
  • Differentiable simulation into learning CPU ✓ GPU ✓ grade 5/5 Gradients through a whole captured run.
  • Ensemble data for training CPU ✓ GPU ✓ grade 4/5 Simulated batches feed a PyTorch training loop without copies.
  • Hybrid, physics-informed models CPU ✓ GPU ✓ grade 5/5 A network and a physics model in one differentiable program.

Not first-class: Hand-tuned kernels, Half precision, Dense linear algebra, large solvers, Dense tensor training, Low-precision inference, Array-style programs.

Compare all tools
Where each tool has a documented, first-class way to do each capability: CPU, GPU or both. An empty cell is not first-class. Every filled cell links to its source. The small number is the grade, 0 to 5; a blank means no source confirms one.
CapabilityraptorNVIDIA WarpJAXPyTorchCuPyNumbaNumPy
Hand-tuned kernels0both 5GPU 42GPU 4both CPU GPU 50
Fixed-step ODEsboth 5both 3both 4both 3GPU 3both CPU GPU 3CPU 3
Differentiable sensitivitiesboth 5both 4both 4both 4000
Zero-copy hand-over (DLPack)both 5both 5both 4both 5GPU 5both CPU GPU 4CPU 4
Per-sample models and RHSboth 4both 4both 5both 42both CPU GPU 51
Half precision0both 4both 4both 5GPU 3GPU 3CPU 3
Dense linear algebra, large solvers2both 3both 5both 5GPU 5CPU 3CPU 5
Ensembles and Monte Carloboth 5both 4both 5both 4GPU 4both CPU GPU 4CPU 4
Divergent workloadsboth 512
Events and early exitboth 5CPU11
Adaptive ODEs, embedded pairsboth 5both 311
Deployment outside Pythonboth 5both 3both 3both 420
Host and GPU steps in one graphGPU 41GPU 31GPU 300
Differentiable simulation into learningboth 5both 4both 4both 4000
Ensemble data for trainingboth 4both 5both 4both 5GPU 5both CPU GPU 4CPU 4
Hybrid, physics-informed modelsboth 5both 4both 4both 4000
Dense tensor training0both 5both 5000
Low-precision inference0both 3both 3000
Array-style programs0both 4both 5GPU 52CPU 5

What each tool has a documented, first-class way to do, on CPU and on GPU; speed is in the bars and the radar.

An icon lights up only when the tool's own documentation shows a designed feature or API for it; a workaround (masking every lane, raw CUDA strings, running the slowest sample to the end) does not count. Every covered cell links to its source. The tools are complementary; overlap is not a ranking.

Ensemble speedfaster is betterFootprint andturnaroundlower is betterCapabilitiesfaster is betterTensors andprecision(qualitative)One-sampleauthoring(qualitative)Low-levelcontrol(qualitative)Reach(qualitative)
  1. 1 Ensemble speed faster is better
  2. 2 Footprint and turnaround lower is better
  3. 3 Capabilities faster is better
  4. 4 Tensors and precision (qualitative)
  5. 5 One-sample authoring (qualitative)
  6. 6 Low-level control (qualitative)
  7. 7 Reach (qualitative)
Ensemble speed
How fast a batch of independent samples runs: uneven, regular, small and adaptive workloads.
Footprint and turnaround
What the work costs around the run: the memory it holds, the time to compile and the code to write.
Capabilities
What the libraries support beyond the ensemble loop: wide values, fused steps, control flow, small linear algebra, contractions, FFT, scatter and reductions, each against the libraries the feature card records.
Tensors and precision (qualitative)
Dense tensor maths, array-style code and half precision: where PyTorch and JAX lead.
One-sample authoring (qualitative)
Writing the code for one sample and getting derivatives of it.
Low-level control (qualitative)
How much of the execution you control from the tool's own language.
Reach (qualitative)
Where the tool fits in: your arrays, deployment outside Python and extension to new targets.

Radar for NVIDIA H100 NVL, card of 2026-11-05, script a69639ae. Each axis is defined in the list below the chart; hover or tap one for the numbers behind it.

Show the data behind the radar
AxisraptorNVIDIA WarpJAXPyTorchCuPy
Ensemble speed1.00 of the radius (mean of 4)0.92 of the radius (mean of 4)0.51 of the radius (mean of 4)0.45 of the radius (mean of 4)0.20 of the radius (mean of 4)
Uneven ensembles48.9 ms (1.0× the best)113 ms (2.3× the best)1.24 s (25× the best)811 ms (16× the best)9.34 s (190× the best)
Regular ensembles40.8 ms (1.0× the best)55.1 ms (1.3× the best)588 ms (14× the best)378 ms (9.2× the best)4.87 s (110× the best)
Small jobs103 µs (1.0× the best)112 µs (1.0× the best)21.8 ms (210× the best)65.7 ms (630× the best)352 ms (3400× the best)
Adaptive ODEs43.6 ms (1.0× the best)101 ms (2.3× the best)1.11 s (25× the best)7.17 s (160× the best)9.06 s (200× the best)
Footprint and turnaround0.99 of the radius (mean of 3)0.49 of the radius (mean of 3)0.64 of the radius (mean of 3)0.50 of the radius (mean of 3)0.74 of the radius (mean of 3)
Memory102 MiB (1.0× the best)94 MiB (1.0× the best)890 MiB (9.4× the best)1506 MiB (16× the best)936 MiB (9.9× the best)
Compile time2.48 s (1.0× the best)9.28 s (3.7× the best)4.22 s (1.7× the best)3.71 s (1.4× the best)2.58 s (1.0× the best)
Code size21 lines (1.0× the best)74 lines (3.5× the best)25 lines (1.1× the best)46 lines (2.1× the best)25 lines (1.1× the best)
Capabilities0.70 of the radius (mean of 9)0.60 of the radius (mean of 2 of 9)–0.95 of the radius (mean of 3 of 9)0.75 of the radius (mean of 5 of 9)
Wide values979 µs (2.5× the best)––378 µs (1.0× the best)–
Fused steps616 µs (1.0× the best)21.5 ms (34× the best)–1.13 ms (1.8× the best)–
Control flow10.6 ms (1.1× the best)9.43 ms (1.0× the best)–––
Small linear algebra, per lane1.66 ms (1.0× the best)–––6.44 ms (3.8× the best)
Small linear algebra, per team65.5 ms (10× the best)––5.97 ms (1.0× the best)19.8 ms (3.3× the best)
Contractions28.7 µs (1.0× the best)––––
FFT1.08 ms (1.0× the best)–––1.14 ms (1.0× the best)
Scatter393 µs (1.1× the best)–––333 µs (1.0× the best)
Reductions185 µs (2.6× the best)–––71.3 µs (1.0× the best)
Tensors and precision (qualitative)1.7 of 52.7 of 54.7 of 55.0 of 54.0 of 5
Tensor workloads (qualitative)2 of 53 of 55 of 55 of 54 of 5
Array-style programming (qualitative)2 of 52 of 54 of 55 of 55 of 5
Half precision and below (qualitative)1 of 53 of 55 of 55 of 53 of 5
One-sample authoring (qualitative)5.0 of 53.5 of 54.5 of 53.5 of 51.5 of 5
Single-thread abstraction (qualitative)5 of 53 of 54 of 53 of 52 of 5
Differentiable kernels (qualitative)5 of 54 of 55 of 54 of 51 of 5
Low-level control (qualitative)3.0 of 55.0 of 53.0 of 52.0 of 53.0 of 5
Reach (qualitative)3.7 of 53.0 of 54.0 of 54.0 of 52.7 of 5
Works with your arrays (qualitative)4 of 54 of 54 of 54 of 55 of 5
Deploy outside Python (qualitative)4 of 53 of 54 of 54 of 51 of 5
Extensibility (qualitative)3 of 52 of 54 of 54 of 52 of 5

Every measured axis is the per-sample ensemble workload raptor is built for; dense tensor maths, training and half precision are the qualitative axes, where PyTorch and JAX lead. Outer is better; overlaps are complementary, not a ranking.

NVIDIA Warp gives you near-total control of every kernel, short of raw CUDA. raptor hands that control to the engine on purpose, so compaction and the launch shape are decided at run time; the two are different trade-offs, not a ranking.

How to read this radar

Each of the seven majors is the plain mean of its minor axes (the detailed radar draws every minor), with equal weights and the same rule for every tool; a minor a tool has no reading on is left out of its mean and the major's marker is drawn hollow. Hover or tap a major to see its minors.

  • Ensemble speed: Uneven ensembles, Regular ensembles, Small jobs and Adaptive ODEs; measured.
  • Footprint and turnaround: Memory, Compile time and Code size; measured.
  • Capabilities: Wide values, Fused steps, Control flow, Small linear algebra, per lane, Small linear algebra, per team, Contractions, FFT, Scatter and Reductions; measured.
  • Tensors and precision: Tensor workloads, Array-style programming and Half precision and below; qualitative.
  • One-sample authoring: Single-thread abstraction and Differentiable kernels; qualitative.
  • Low-level control: A single axis, so nothing is averaged; qualitative.
  • Reach: Works with your arrays, Deploy outside Python and Extensibility; qualitative.

Each measured axis is stretched over its own best-to-worst range, so ring labels differ per axis (code size: at least 4x). Axes are grouped by theme, so read the axes, not the area.

Italic axes are the author's judgement, not measurements: hollow markers, a linear scale, and no marker where a tool has no reading. A hollow marker on a measured axis means a minor is missing. The hover panel has each axis's full wording.

Every number, in the full tables.

1,000,000 samples, each stopping at its own time. Log scale; the axis runs from 1.56 s to 96.8 s, a margin around the fastest and the slowest bar shown. Measured on AMD EPYC 9B45, card of 2026-11-10. Every tool, every N, and where each one fits.

Host CPU AMD EPYC 9B45; Python 3.12.3. Card file: cpu_card_amd-epyc-9b45.json.

Memory and the NVIDIA Warp comparison are GPU measurements: pick On a GPU to see them.

1,000,000 samples, each stopping at its own time. Log scale; the axis runs from 3.76 s to 189 s, a margin around the fastest and the slowest bar shown. Measured on Intel Xeon W-2125, card of 2026-11-10. Every tool, every N, and where each one fits.

Host CPU Intel(R) Xeon(R) W-2125 CPU @ 4.00GHz; Python 3.12.16. Card file: cpu_card_intel-r-xeon-r-w-2125-cpu-4-00ghz.json.

Memory and the NVIDIA Warp comparison are GPU measurements: pick On a GPU to see them.

1,000,000 samples, each stopping at its own time. Log scale; the axis runs from 1.67 s to 54.2 s, a margin around the fastest and the slowest bar shown. Measured on Apple M4 Pro, card of 2026-11-10. Every tool, every N, and where each one fits.

Host CPU Apple M4 Pro; Python 3.15.2. Card file: cpu_card_apple-m4-pro.json.

Memory and the NVIDIA Warp comparison are GPU measurements: pick On a GPU to see them.

1,000,000 samples, each stopping at its own time. Log scale; the axis runs from 4.48 s to 99.7 s, a margin around the fastest and the slowest bar shown. Measured on Google Axion (Arm Neoverse-V2), card of 2026-11-10. Every tool, every N, and where each one fits.

Host CPU Google Axion (Arm Neoverse-V2); Python 3.12.3. Card file: cpu_card_aarch64.json.

Memory and the NVIDIA Warp comparison are GPU measurements: pick On a GPU to see them.

SimulationAICPUCPU and GPUGPU
SimulationAICPUCPU andGPUGPU

first-class: a glowing icon with its name not first-class: a faint icon on the middle band, no name number: the grade, 0 to 5; blank when no source confirms one

raptor: 13 capabilities, 12 on both CPU and GPU, 1 GPU only, 12 on the Simulation side and 1 on the AI side.

Show details
  • Fixed-step ODEs CPU ✓ GPU ✓ grade 5/5 A step written for one sample, run over the batch until every sample is done.
  • Differentiable sensitivities CPU ✓ GPU ✓ grade 5/5 Generated forward- and reverse-mode derivatives, read by jax.grad, torch autograd and wp.Tape.
  • Zero-copy hand-over (DLPack) CPU ✓ GPU ✓ grade 5/5 Runs inside your JAX, PyTorch, Warp, CuPy and NumPy programs, and theirs inside its batches; DLPack hand-over certified with all five.
  • Per-sample models and RHS CPU ✓ GPU ✓ grade 4/5 You write one step of one sample; the batch is launched for you.
  • Ensembles and Monte Carlo CPU ✓ GPU ✓ grade 5/5 Many independent samples in one batched run.
  • Divergent workloads CPU ✓ GPU ✓ grade 5/5 Finished samples are compacted out, so each launch covers only the samples still running.
  • Events and early exit CPU ✓ GPU ✓ grade 5/5 A sample stops on its own condition and leaves the work.
  • Adaptive ODEs, embedded pairs CPU ✓ GPU ✓ grade 5/5 eagle.simulate runs an embedded RKF7(8) pair with per-sample step control.
  • Deployment outside Python CPU ✓ GPU ✓ grade 5/5 A compiled kernel is embedded in a C++ program and run there; hawk's c target also writes standalone MISRA C, with no Python and no eagle.
  • Host and GPU steps in one graph CPU – GPU ✓ grade 4/5 Host nodes, copies and GPU kernels sit in one eagle graph, captured once and replayed.
  • Differentiable simulation into learning CPU ✓ GPU ✓ grade 5/5 Gradients through a whole captured run.
  • Ensemble data for training CPU ✓ GPU ✓ grade 4/5 Simulated batches feed a PyTorch training loop without copies.
  • Hybrid, physics-informed models CPU ✓ GPU ✓ grade 5/5 A network and a physics model in one differentiable program.

Not first-class: Hand-tuned kernels, Half precision, Dense linear algebra, large solvers, Dense tensor training, Low-precision inference, Array-style programs.

Compare all tools
Where each tool has a documented, first-class way to do each capability: CPU, GPU or both. An empty cell is not first-class. Every filled cell links to its source. The small number is the grade, 0 to 5; a blank means no source confirms one.
CapabilityraptorNVIDIA WarpJAXPyTorchCuPyNumbaNumPy
Hand-tuned kernels0both 5GPU 42GPU 4both CPU GPU 50
Fixed-step ODEsboth 5both 3both 4both 3GPU 3both CPU GPU 3CPU 3
Differentiable sensitivitiesboth 5both 4both 4both 4000
Zero-copy hand-over (DLPack)both 5both 5both 4both 5GPU 5both CPU GPU 4CPU 4
Per-sample models and RHSboth 4both 4both 5both 42both CPU GPU 51
Half precision0both 4both 4both 5GPU 3GPU 3CPU 3
Dense linear algebra, large solvers2both 3both 5both 5GPU 5CPU 3CPU 5
Ensembles and Monte Carloboth 5both 4both 5both 4GPU 4both CPU GPU 4CPU 4
Divergent workloadsboth 512
Events and early exitboth 5CPU11
Adaptive ODEs, embedded pairsboth 5both 311
Deployment outside Pythonboth 5both 3both 3both 420
Host and GPU steps in one graphGPU 41GPU 31GPU 300
Differentiable simulation into learningboth 5both 4both 4both 4000
Ensemble data for trainingboth 4both 5both 4both 5GPU 5both CPU GPU 4CPU 4
Hybrid, physics-informed modelsboth 5both 4both 4both 4000
Dense tensor training0both 5both 5000
Low-precision inference0both 3both 3000
Array-style programs0both 4both 5GPU 52CPU 5

What each tool has a documented, first-class way to do, on CPU and on GPU; speed is in the bars and the radar.

An icon lights up only when the tool's own documentation shows a designed feature or API for it; a workaround (masking every lane, raw CUDA strings, running the slowest sample to the end) does not count. Every covered cell links to its source. The tools are complementary; overlap is not a ranking.

Ensemble speedfaster is betterFootprint andturnaroundlower is betterCapabilitiesfaster is betterTensors andprecision(qualitative)One-sampleauthoring(qualitative)Low-levelcontrol(qualitative)Reach(qualitative)
  1. 1 Ensemble speed faster is better
  2. 2 Footprint and turnaround lower is better
  3. 3 Capabilities faster is better
  4. 4 Tensors and precision (qualitative)
  5. 5 One-sample authoring (qualitative)
  6. 6 Low-level control (qualitative)
  7. 7 Reach (qualitative)
Ensemble speed
How fast a batch of independent samples runs: uneven, regular, small and adaptive workloads.
Footprint and turnaround
What the work costs around the run: the memory it holds, the time to compile and the code to write.
Capabilities
What the libraries support beyond the ensemble loop: wide values, fused steps, control flow, small linear algebra, contractions, FFT, scatter and reductions, each against the libraries the feature card records.
Tensors and precision (qualitative)
Dense tensor maths, array-style code and half precision: where PyTorch and JAX lead.
One-sample authoring (qualitative)
Writing the code for one sample and getting derivatives of it.
Low-level control (qualitative)
How much of the execution you control from the tool's own language.
Reach (qualitative)
Where the tool fits in: your arrays, deployment outside Python and extension to new targets.

Radar for AMD EPYC 9B45, card of 2026-11-10, script 988fa118. Each axis is defined in the list below the chart; hover or tap one for the numbers behind it.

Show the data behind the radar
AxisraptorNumbaJAXPyTorchNumPy
Ensemble speed1.00 of the radius (mean of 4)0.56 of the radius (mean of 4)0.36 of the radius (mean of 4)0.20 of the radius (mean of 1 of 4)0.35 of the radius (mean of 1 of 4)
Uneven ensembles2.49 s (1.0× the best)19.6 s (7.8× the best)60.5 s (24× the best)––
Regular ensembles2.06 s (1.0× the best)17.8 s (8.6× the best)28.8 s (13× the best)––
Small jobs167 µs (1.0× the best)368 µs (2.1× the best)491 µs (2.9× the best)44.7 ms (260× the best)15.6 ms (92× the best)
Adaptive ODEs3.76 s (1.0× the best)19.9 s (5.3× the best)60.5 s (16× the best)––
Footprint and turnaround0.60 of the radius (mean of 2 of 3)0.36 of the radius (mean of 2 of 3)0.96 of the radius (mean of 2 of 3)–0.97 of the radius (mean of 1 of 3)
Memory–––––
Compile time565 ms (7.8× the best)449 ms (6.2× the best)71.5 ms (1.0× the best)––
Code size22 lines (1.0× the best)58 lines (2.6× the best)25 lines (1.1× the best)–23 lines (1.0× the best)
Capabilities0.68 of the radius (mean of 7 of 9)––0.73 of the radius (mean of 3 of 9)0.60 of the radius (mean of 2 of 9)
Wide values90.5 ms (1.9× the best)––47.5 ms (1.0× the best)105 ms (2.2× the best)
Fused steps259 ms (2.5× the best)––101 ms (1.0× the best)–
Control flow694 ms (1.0× the best)––––
Small linear algebra, per lane41.2 ms (1.0× the best)––299 ms (7.2× the best)–
Small linear algebra, per team–––––
Contractions78.8 µs (1.0× the best)––––
FFT–––––
Scatter9.80 ms (2.2× the best)–––4.36 ms (1.0× the best)
Reductions3.63 ms (1.0× the best)––––
Tensors and precision (qualitative)1.7 of 52.7 of 54.7 of 55.0 of 54.0 of 5
Tensor workloads (qualitative)2 of 53 of 55 of 55 of 54 of 5
Array-style programming (qualitative)2 of 52 of 54 of 55 of 55 of 5
Half precision and below (qualitative)1 of 53 of 55 of 55 of 53 of 5
One-sample authoring (qualitative)5.0 of 52.0 of 54.5 of 53.5 of 51.0 of 5
Single-thread abstraction (qualitative)5 of 53 of 54 of 53 of 51 of 5
Differentiable kernels (qualitative)5 of 51 of 55 of 54 of 51 of 5
Low-level control (qualitative)3.0 of 55.0 of 52.0 of 52.0 of 52.0 of 5
Reach (qualitative)3.7 of 52.7 of 54.0 of 54.0 of 52.7 of 5
Works with your arrays (qualitative)4 of 53 of 54 of 54 of 54 of 5
Deploy outside Python (qualitative)4 of 52 of 54 of 54 of 51 of 5
Extensibility (qualitative)3 of 53 of 54 of 54 of 53 of 5

Every measured axis is the per-sample ensemble workload raptor is built for; dense tensor maths, training and half precision are the qualitative axes, where PyTorch and JAX lead. Outer is better; overlaps are complementary, not a ranking.

NVIDIA Warp gives you near-total control of every kernel, short of raw CUDA. raptor hands that control to the engine on purpose, so compaction and the launch shape are decided at run time; the two are different trade-offs, not a ranking.

How to read this radar

Each of the seven majors is the plain mean of its minor axes (the detailed radar draws every minor), with equal weights and the same rule for every tool; a minor a tool has no reading on is left out of its mean and the major's marker is drawn hollow. Hover or tap a major to see its minors.

  • Ensemble speed: Uneven ensembles, Regular ensembles, Small jobs and Adaptive ODEs; measured.
  • Footprint and turnaround: Memory, Compile time and Code size; measured.
  • Capabilities: Wide values, Fused steps, Control flow, Small linear algebra, per lane, Small linear algebra, per team, Contractions, FFT, Scatter and Reductions; measured.
  • Tensors and precision: Tensor workloads, Array-style programming and Half precision and below; qualitative.
  • One-sample authoring: Single-thread abstraction and Differentiable kernels; qualitative.
  • Low-level control: A single axis, so nothing is averaged; qualitative.
  • Reach: Works with your arrays, Deploy outside Python and Extensibility; qualitative.

Each measured axis is stretched over its own best-to-worst range, so ring labels differ per axis (code size: at least 4x). Axes are grouped by theme, so read the axes, not the area.

Italic axes are the author's judgement, not measurements: hollow markers, a linear scale, and no marker where a tool has no reading. A hollow marker on a measured axis means a minor is missing. The hover panel has each axis's full wording.

Every number, in the full tables.

Full numbers on the default GPU, every arm

tool

wall (N = 1,000,000, spread batch)

eagle.simulate (eagle picks the launch mode)

48.9 ms

Warp per-thread kernel

113 ms

PyTorch with torch.compile

811 ms

JAX jit(vmap(while_loop))

1.24 s

CuPy masked

9.34 s

  • Tensor libraries compute every sample, every step – a masked array keeps computing the samples that already finished.

  • hawk + eagle skips finished samples and packs the live ones into the next launch, so the batch keeps shrinking as samples finish.

  • Warp is excellent at per-thread kernels: on a fully dense batch eagle.simulate beats it: 40.8 ms against Warp’s 55.1 ms – complementary tools, not a hierarchy.

RAPTOR adds, from the same source: per-sample Python, device-side stopping, forward- and reverse-mode derivatives, and the identical kernel on the CPU.

Measured on NVIDIA H100 NVL. Every number, every arm.

What you write#

import cupy as cp

import eagle
import hawk
from hawk import Mutable, Param, Scalar, Terminated


@hawk.kernel
def oscillator(
    omega: Scalar, t_end: Param, dt: Param,
    terminated: Terminated,
    x: Mutable[Scalar], v: Mutable[Scalar],
    t: Mutable[Scalar],
):
    x, v = x + dt * v, v - dt * omega * omega * x
    t += dt
    terminated = t >= t_end


n = 1_000_000
result = eagle.simulate(
    oscillator,
    omega=cp.linspace(1.0, 3.0, n), t_end=1.0, dt=1e-3,
    x=cp.ones(n), v=cp.zeros(n), t=cp.zeros(n),
    max_steps=10_000,
)
print(result.status, result.steps, result.x[:3])
# needs a GPU to run (1,000,000 cupy samples); the CPU twin below shows its output

What happened

Pass the kernel’s arguments as you would call it; give an array where each sample has its own value.

eagle ran the whole step loop on the GPU, choosing how to launch from the batch size, and did all the launching in one call.

Finished samples were dropped from the next launch: eagle keeps the list of samples still running, so the batch shrank as it ran. The card measures what this saves.

NumPy arrays instead of CuPy run the same call on CPU threads.

No GPU? The same kernel with NumPy arrays (a thousand samples), run with no GPU visible:

import numpy as np

import eagle
import hawk
from hawk import Mutable, Param, Scalar, Terminated


@hawk.kernel
def oscillator(
    omega: Scalar, t_end: Param, dt: Param,
    terminated: Terminated,
    x: Mutable[Scalar], v: Mutable[Scalar],
    t: Mutable[Scalar],
):
    x, v = x + dt * v, v - dt * omega * omega * x
    t += dt
    terminated = t >= t_end


n = 1_000
result = eagle.simulate(
    oscillator,
    omega=np.linspace(1.0, 3.0, n), t_end=1.0, dt=1e-3,
    x=np.ones(n), v=np.zeros(n), t=np.zeros(n),
    max_steps=10_000,
)
print(result.status, result.steps, result.x[:3])

Printed on a CPU:

finished 1024 [0.54057281 0.53888734 0.5371997 ]

Four libraries#

Straight to a section:

Install
pip install raptor-core                                     # the protocol spine: Python 3.9+, no dependencies
pip install raptor-hawk                                     # hawk, CPU only (Linux x86_64 and aarch64, macOS 15+ arm64, CPython versions per `pyproject.toml`, host compiler; see Building from source for compiler versions)
pip install "raptor-hawk[cuda12]" "raptor-eagle[cuda12]"    # GPU route; use [cuda13] on both for CUDA 13

Important

NVIDIA’s GPU packages come only through the extras. raptor-hawk[cuda12] pulls cuda-bindings 12, nvidia-cuda-nvrtc-cu12 and nvidia-cuda-cccl-cu12; raptor-hawk[cuda13] pulls cuda-bindings 13, nvidia-cuda-nvrtc 13 and nvidia-cuda-cccl 13 (CUDA 13’s wheels have no -cu13 suffix); raptor-eagle[cuda12] / [cuda13] pull CuPy (cupy-cuda12x / cupy-cuda13x, with the CUDA headers CuPy compiles against). Without an extra pip installs no NVIDIA package: you get the CPU route, or the GPU route through a CUDA setup you already have. Pick the extra matching the CUDA version your driver reports (nvidia-smi, top right). No nvcc or CUDA toolkit is needed.

Platforms: the wheels are built for Linux (x86_64 and aarch64) and macOS 15+ (Apple silicon, arm64) (CPython versions as listed in each package’s pyproject.toml, including the free-threaded builds, where hawk and eagle take the CPU route). What the wheel ships, what you need and what the cards measured are in the compatibility table. There are no Windows wheels and none for Intel Macs; build from source there. raptor-core and aether-dsc are pure Python and install anywhere. On free-threaded 3.14t, hawk and eagle run GIL-free.

raptor-hawk pulls aether-dsc (the sealed C++ headers hawk compiles against) automatically. eagle alone: pip install "raptor-eagle[cuda12]" ([torch] adds PyTorch interop); its wheel ships GPU code for every NVIDIA architecture from Pascal (sm_60) through Blackwell plus PTX for newer GPUs. aether is a header-only C++ library used through CMake; aether-dsc on PyPI is not something C++ users install. To build everything from source (contributors, C++ users, your own toolchain), see Building from source.

Citing

Each repository is cited independently: its own CITATION.cff carries the metadata (GitHub shows it under “Cite this repository”), and every tagged release is archived on Zenodo: hawk doi:10.5281/zenodo.23250242, eagle doi:10.5281/zenodo.23250240, aether doi:10.5281/zenodo.23250238, raptor doi:10.5281/zenodo.23250234.

License

All four repositories — aether, raptor, eagle and hawk — are licensed under the Apache License, Version 2.0: free for any use, commercial or not, with attribution. See each repository’s own LICENSE for the full text.