Les articles sont rédigés en anglais et en chinois.
TesboCFD
Why we wrote our own algebraic multigrid
The pressure solve decides the speed of an incompressible CFD step. On one A100, TesboFlow's in-house AMG runs 1,000 iterations in 34.8 s and 7.0 J a step, against 59.2 s and 11.2 J for NVIDIA AmgX.
In an incompressible flow solver, most of the time in a step goes into one place: the pressure equation. It couples every cell to every other cell, and it has to be solved again on every step. Whatever solves it sets the pace for the whole solver.
What multigrid does
An iterative solver like conjugate gradients removes error quickly where it varies from cell to cell, and slowly where it is smooth across the whole domain. Multigrid fixes the slow part. It builds a stack of coarser versions of the problem, removes the smooth error where it is cheap to see, and carries the correction back to the fine mesh.
For a symmetric system , one two-level cycle looks like this:
restricts the residual to the coarse level, prolongs the correction back, and is the coarse operator. Algebraic multigrid builds and from the matrix itself, with no geometric hierarchy of meshes. That is what lets it work on the unstructured meshes real cases use.
Why not use a library
NVIDIA AmgX is a capable GPU AMG library, and it is the natural first choice.
A general library has to serve every kind of matrix. A CFD pressure solve is one kind, repeated thousands of times with the same sparsity pattern and slowly changing coefficients. Writing our own solver let us shape it around that one job and keep it inside the same GPU pipeline as the rest of the step.
The measurement
Case: the Ahmed body, 1.09 million cells. Hardware: one A100 SXM 80 GB. Run: 1,000 iterations.
| Solver | Total time | Energy per step |
|---|---|---|
| TesboFlow in-house AMG | 34.8 s | 7.0 J |
| NVIDIA AmgX | 59.2 s | 11.2 J |
The in-house AMG is the default pressure solver in TesboFlow. Less energy per step matters as much as less time when a machine runs design studies around the clock.
What it means for you
A TesboFlow step is fast for many reasons, and the whole pipeline running on the GPU is only the start. This is one of them: the most expensive part of the step was written for exactly this job.
The full set of performance numbers is in the TesboFlow performance section.