Les articles sont rédigés en anglais et en chinois.
TesboCFD
Why lattice Boltzmann belongs on the GPU
Going from 1 CPU core to 18 buys only 8.3×. One V100 runs the same kernel at 1851 MLUPS, 62.7% of its memory bandwidth. Why lattice Boltzmann is limited by memory, not arithmetic.
Lattice Boltzmann is simple arithmetic on a lot of data. Each cell holds a set of particle distributions, one per lattice direction. Every step, each cell reads them, relaxes them toward equilibrium, and writes them out to its neighbours.
One step, in one line
The textbook single-relaxation form shows the shape of it. The update for direction is
The collision on the right is a handful of multiplications and additions per value. The streaming on the left moves every value to a neighbouring cell. Per value read and written, there is very little arithmetic. The speed of the step is set by how fast memory can move the data.
What the CPU shows
On one machine, the single-phase kernel runs at 4.1 MLUPS (million lattice updates per second) on one CPU core and 33.9 MLUPS on all 18 cores. Eighteen times the cores buys 8.3× the throughput, a parallel efficiency of 45%.
That is the signature of a memory-bound code. A handful of cores already saturate the socket's memory bandwidth. Adding more cores adds arithmetic the kernel cannot use.
What the GPU shows
On one Tesla V100, the same kernel runs at 1851 MLUPS. That is 55× all 18 CPU cores of the same machine.
It also uses 62.7% of the V100's memory bandwidth: 562.9 of 897 GB/s. That second number says more than the first. It means the engine spends most of its time doing the one thing that limits it: moving data at close to the rate the card can deliver.
A real casting runs slower, for a reason
The 1851 MLUPS figure is the single-phase kernel peak on a saturated domain. A coupled free-surface fill on a real casting runs at roughly 450 MLUPS effective. It carries more fields per cell: the free surface, temperature and solidification, all coupled. More data per cell on a memory-bound code means fewer cells per second.
What it means for you
If a code is limited by memory, the hardware with the most memory bandwidth wins. That is why TesboLBM runs on the GPU, and why the right question about any LBM speedup is how much of the card's bandwidth it uses.
The numbers are on the TesboLBM page.