Skip to content

Running your simulation

hippoLBM takes one input deck (a .msp YAML file). It first loads the default configuration data/config/main-config.msp, then the deck, which overrides it key by key (see Configuration files).

build-hippoLBM/hippoLBM mydeck.msp      # from the build tree
hippoLBM mydeck.msp                     # installed with Spack (spack load hippolbm)

Files read by the deck (STL meshes, checkpoint files, ...) are searched relative to the current directory, and the outputs are written in the directory given by output_directory (default hippoLBMOutputDir/).

Threads, GPU and MPI

hippoLBM mydeck.msp --omp_num_threads 8

When onika is built with CUDA, the kernels run on the GPU by default. Use --nogpu to force the CPU version:

hippoLBM mydeck.msp                  # GPU
hippoLBM mydeck.msp --nogpu          # CPU only

Note

hippoLBM computes in double precision (float64): use GPUs with good FP64 throughput (A100, H100, ...). Consumer GPUs have a very low FP64 throughput.

The domain is split into a Cartesian grid of MPI subdomains. Each MPI process can use OpenMP threads and/or one GPU:

mpirun -n 4 hippoLBM mydeck.msp --omp_num_threads 4

On GPU clusters, use one MPI process per GPU; hippoLBM relies on CUDA-aware MPI for the ghost updates.

Command-line options

Any value of the global block can be set from the command line with --set-global-<key> value, which is handy for short tests:

1
2
3
# short run without ParaView output
hippoLBM lbm_couette.msp --set-global-simulation_end_iteration 200 \
                         --set-global-simulation_paraview_freq -1

Configuration keys can be set the same way: --a-b value sets configuration: { a: { b: value } }.

Getting help

hippoLBM --help plugins            # every available operator, by plugin
hippoLBM --help set_dp_pressure    # description and slots of one operator

Execution graph

Add --debug-graph true after your .msp file to print the full operator execution graph (see Simulation Graph):

hippoLBM my_simulation.msp --debug-graph true

At the end of the run, onika prints a profiling summary with the time spent in each operator (GPU time in parentheses).