This guide shows the simplest way to run an ETEX-style simulation
with flexpart-gpu, without modifying the engine source code.
The default quickstart is GPU-only and does not require a
sibling ../flexpart checkout.
- Rust toolchain (
cargo) - Python 3 (+
numpy,eccodes,cdsapi) - Copernicus CDS account (to download ERA5) with
~/.cdsapirc
Optional (only for Fortran comparison):
- Docker + Docker Compose
- sibling Fortran checkout at
../flexpart
Optional (for GPU execution inside Docker):
docker/docker-compose.yml(default GPU container)docker/docker-compose.nvidia.yml(NVIDIA overlay)
Example ~/.cdsapirc:
url: https://cds.climate.copernicus.eu/api
key: <YOUR_PERSONAL_ACCESS_TOKEN>From the flexpart-gpu root:
scripts/run-etex.sh statusThis command reports what is missing (ETEX data, ERA5, outputs already produced, etc.).
scripts/run-etex.sh allThe script chains:
- parsing ETEX measurements,
- downloading ERA5,
- preparing FLEXPART meteorological files,
- running
flexpart-gpu, - comparing against observations,
- generating the report.
If all fails, run individual steps:
scripts/run-etex.sh parse
scripts/run-etex.sh download
scripts/run-etex.sh prepare
scripts/run-etex.sh gpu
scripts/run-etex.sh compare
scripts/run-etex.sh reportOptional Fortran step:
scripts/run-etex.sh fortranOr run everything including Fortran in one go:
scripts/run-etex.sh all-with-fortranThe reference ETEX scenario is located in:
fixtures/etex/real/config/COMMANDfixtures/etex/real/config/RELEASESfixtures/etex/real/config/OUTGRIDfixtures/etex/real/config/SPECIES/*
To create a new simulation, duplicate this folder, edit these files,
and adjust the script (or variables) to point to your new config.
The pipeline writes mainly to target/etex/, including:
gpu_output.jsoncomparison_report.jsongpu.log
When Fortran comparison is enabled, it also writes:
fortran.log
- You do not need to write a new C++/Rust program for each case: standard usage relies on config files + a launcher script.
- If you change the physics (kernels, timeloop), then yes, recompilation is required.
- If CDS credentials are missing, the pipeline may stop at the ERA5 download step.
From the flexpart-gpu root:
# Default containerized GPU run
docker compose -f docker/docker-compose.yml run --rm flexpart-gpu bash
# NVIDIA containerized GPU run
docker compose -f docker/docker-compose.yml -f docker/docker-compose.nvidia.yml \
run --rm flexpart-gpu bashHelper wrappers (recommended):
scripts/gpu-preflight.sh compose
scripts/gpu-preflight.sh nvidiaUse this quick decision path:
- Try local first (simplest path):
scripts/gpu-preflight.sh local- If you want Docker without NVIDIA-specific overlay:
scripts/gpu-preflight.sh compose- If you need NVIDIA passthrough in Docker:
scripts/gpu-preflight.sh nvidiaHow to interpret the result:
- If adapter shows your physical GPU (for example NVIDIA), you are using real GPU.
- If adapter shows
llvmpipe/Cpu, you are running on CPU fallback. composecan use either real GPU or CPU fallback depending on host/container GPU exposure.nvidiais the preferred Docker mode when you want to force NVIDIA GPU access.
- Benchmarks:
docs/benchmarks.md - Validation report:
docs/validation-report.md - Scientific validation:
docs/benchmarks/benchmark-scientific-validation.md