CUDA optics qualification
Measured 2026-11-15T16:01:31.756532+00:00 on NVIDIA GeForce RTX 5060 (8 GiB),
AMD Ryzen AI 9 HX 370 CPU, Python 3.12.12 and Warp 1.11.1.
Warp reported CUDA Toolkit 12.9 and driver API 13.4. The run used source revision
4ce93ae09a015c9d42047ced8174f77e809a0684 with package source
SHA-256 79b3c10633e7c9d63f57a936a1bb4aefdf058d431b139220b3852cba351c30ee.
The example source was newly authored; its exact executed bytes, execution
fingerprint, installed distribution metadata and dependency versions are in
website/results/cuda-optics/manifest.json and source.py.
The installed Particula distribution metadata says 0.2.14; this result uses
the recorded development checkout, not a released 0.2.14 optics API.
Reproduction and timing boundaries
Section titled “Reproduction and timing boundaries”Run the complete CUDA optics example:
python scripts/docs_examples.py refresh cuda-opticsUse the selected environment and checkout on PYTHONPATH when reusing another
worktree’s environment. This run used a separate empty Warp cache under
XDG_CACHE_HOME=/tmp/optics-stream-evidence-cache. Other validation workloads
had completed before the retained timing run. Background OS load and frequency
variation were not controlled; this is a local workload measurement, not a
hardware-wide throughput claim.
Module compilation/cache loading is measured explicitly with wp.load_module
before preparation. Upload, preparation and download are separate intervals.
CUDA execution uses five warm repeated enqueues, each followed by device
synchronization; status reads and downloads are outside that timing. NumPy CPU
execution uses three complete calls. No graph capture is used. CPU and CUDA
algorithms share physical formulas but are different implementations; no Warp
CPU speed claim is made. Raw repetitions are retained in the saved plot data.
| Cases | Maximum x | NumPy median [ms] | CUDA median [ms] | Upload [ms] | Preparation [ms] | Download [ms] |
|---|---|---|---|---|---|---|
| 64 | 10 | 2.041 | 0.146 | 0.4085 | 0.4287 | 0.02265 |
| 512 | 100 | 34.76 | 1.357 | 0.136 | 0.1553 | 0.03144 |
| 2048 | 1000 | 857.7 | 21.14 | 0.2371 | 0.4531 | 0.06347 |
Module compile/cache-load observations [s]: mie=0.6003, angular=0.5027, _bulk=0.4471.
Numerical qualification
Section titled “Numerical qualification”Each batch uses logarithmically spaced x from 0.1 to its maximum, index 1.5+0.1i, float64 and 256-case coefficient tiles. Every returned efficiency, asymmetry and validity value is compared with NumPy at rtol=1e-8, atol=1e-12. Output buffer identity is checked across repeated executions. The timing study is not the x=10000 qualification; see the independent reference and angular checks for that evidence.
The cloud calculation uses 512 radius bins from 0.5 to 20 micrometres, 100 particles/cm³, four wavelengths (450,550,700,900 nm), index 1.33+1e-8i, 61 angles and 128-particle/32-angle tiles. All nine bulk output fields and every full Mueller element are checked, not only plotted S11. Scalar parity uses rtol=1e-8, atol=1e-12; angular error is scaled by each case’s peak matrix entry and bounded by 1e-8. The measured maximum scaled Mueller error was 1.09852e-15.
The saved JSON includes only timings, plotted optical summaries and residuals. It excludes particle state and full validation arrays. Two saved figures were visually inspected. Optical numerical tests additionally cover Warp CPU, native CUDA, failures, zero cases, medium normalization, polarization, chunk independence and independent angular integrals through x=10000.
Delivery validation
Section titled “Delivery validation”Read the contributor decision and qualification details.
Study resources
Section titled “Study resources”- Calculation · Qualify CUDA optics before interpreting a cloud spectrum · View code · Download Python script
- CUDA optics delivery qualification
- How to use this · Optical calculations
Related studies
Section titled “Related studies”Explore this topic: Optical properties · GPU workflows