كل المقالات

المقالات متاحة بالإنجليزية حاليًا.

TesboCFD

More GPUs, the same answer

Why TesboFlow gives the same result whatever the number of GPUs, and why that matters more than it sounds.

Add GPUs to a CFD run and you expect it to get faster. You do not expect the answer to move. With many parallel solvers it does, a little. TesboFlow is built so that it does not.

The claim

The same case gives the same answer every run, and the number of GPUs does not change it.

On the Ahmed body at 1.09 million cells, TesboFlow gives a drag coefficient of 0.2964. A CPU solver on the same mesh gives 0.297. One GPU and two GPUs agree on that drag coefficient to 0.02%: a difference of about 0.00006.

For scale, the published wind-tunnel results for this body span 0.285 to 0.299, a band about 200 times wider than the gap between one GPU and two.

Why it is not automatic

Floating-point addition is not associative. Add the same numbers in a different order and the last digits change. A parallel solver splits each sum across its GPUs, and the split depends on how many there are. So unless the solver is built for it, two GPUs and eight GPUs add things up in different orders and drift apart in the last digits. Over thousands of iterations, small drifts can become visible ones.

TesboFlow is built so that the answer does not depend on how the mesh is split. A case is the same files whatever the GPU count: the solver splits the mesh across the GPUs when the run starts and writes the results back as one set of files. There is no separate decomposition step and no setting to keep in step with the number of GPUs.

Why it matters

Comparing designs. When you change a fillet and the drag changes, you want to know the change came from the fillet. If the answer also moves with the hardware, a small design effect can disappear into the noise.

Moving a case to bigger hardware. A case set up and checked on one workstation card can move to an eight-GPU server for the production runs. The answer you checked is the answer you get, only sooner. On the 8.17-million-cell Ahmed mesh, one A100 takes 194 ms a step and eight take 55 ms.

Regression and audit. A run can be repeated and checked against a stored result. When something changes, it is the case or the software that changed, not the run.

Support. When you report a problem, we can rerun your case on our own GPUs and see what you saw.

See it for yourself

On the TesboFlow training day, the first exercise runs a case on one GPU, then on two, and compares the two result files cell by cell.

Before you buy, send us a case you have already run: any physics we sell. For how runs split across GPUs and nodes, see multi-GPU and clusters. Runs across several nodes are supported and use the same code.