Uploaded August 2022 | Updated November 2026, 3 days ago
No wonder the Jedi are winning! The TIE fighter is tumbling out of control in atmospheric flight due to troublesome turbulence!
1.24 billion voxel FluidX3D CFD simulation on 1 GCD (64GB) of an MI250*, showing off OpenCL performance on AMD Instinct.
This took 6 hours for combined compute (50k LBM time steps at 852×1704×852 resolution, mesh re-voxelization every 28 time steps) and rendering (4x 30s 1080p60 video).
Shown is the Q-criterion isosurfaces with marching-cubes. Reynolds number is 100k with Smagorinsky subgrid model, but at this resolution it would probably also run stable without.
FluidX3D source code: github.com/ProjectPhysX/FluidX3D
While the one GCD of MI250 simulates the X-wing, the second GCD can be used for the dark side of the force and simulate TIE fighter aerodynamics. Both of these large-scale simulations can run at the same time with single-socket AMD Instinct hardware. What a time to be alive!
Star Wars X-wing simulation: youtu.be/3JNVBQyetMA
*The MI250 is actually 2 entirely separate GPUs (GCDs) in a single socket with 64GB memory each. One GCD can't directly access the memory of the other. This simulation is only running on one GCD, using the full 64GB of its unified memory.
To use both GCDs, or better all 8 GCDs in the server at Jülich Supercomputing Center, the code would need to be specifically extended for multi-GPU support. This is very difficult and time-consuming, and for some parts of FluidX3D, like raytracing graphics, it is close to impossible. Maybe one day I will find the time to do it, but not now.
Still, how is it possible to squeeze 1.24 billion grid points in only 64GB?
I'm using two techniques here, which together form the holy grail of lattice Boltzmann, cutting memory demand down to only 55 Bytes/node for D3Q19 LBM, or 1/3 of conventional codes:
1. In-place streaming with Esoteric-Pull. This almost cuts memory demand in half and slightly increases performance due to implicit bounce-back boundaries.
Paper: doi.org/10.3390/computation10060092
2. Decoupled arithmetic precision (FP32) and memory precision (FP16): all arithmetic is done in FP32, but LBM density distribution functions in memory are compressed to FP16. This almost cuts memory demand in half and almost doubles performance, without impacting overall accuracy for most setups.
Paper: researchgate.net/publication/362275548_Accuracy_and_performance_of_the_lattice_Boltzmann_method_with_64-bit_32-bit_and_customized_16-bit_number_formats
Graphics are done directly in FluidX3D with OpenCL, with the raw simulation data already residing in ultra-fast video memory. No volumetric data (1 frame of the velocity field is 14GB!) ever has to be copied to the CPU or hard drive, but only rendered 1080p frames (8MB) instead. Once on the CPU side, a copy of the frame is made in memory and a thread is detached to handle the slow .png compression, all while the simulation is already continuing. At any time, about 16 frames are compressed in parallel on 16 CPU cores, while the simulation is running on GPU.
Paper: researchgate.net/publication/360501260_Combined_scientific_CFD_simulation_and_interactive_raytracing_with_OpenCL
Timestamps:
0:00 head-on view
0:30 top view
0:59 side view
1:29 follow view
#CFD #GPU #FluidX3D #OpenCL
No wonder the Jedi are winning! The TIE fighter is tumbling out of control in atmospheric flight due to troublesome turbulence!
1.24 billion voxel FluidX3D CFD simulation on 1 GCD (64GB) of an MI250*, showing off OpenCL performance on AMD Instinct.
This took 6 hours for combined compute (50k LBM time steps at 852×1704×852 resolution, mesh re-voxelization every 28 time steps) and rendering (4x 30s 1080p60 video).
Shown is the Q-criterion isosurfaces with marching-cubes. Reynolds number is 100k with Smagorinsky subgrid model, but at this resolution it would probably also run stable without.
FluidX3D source code: github.com/ProjectPhysX/FluidX3D
While the one GCD of MI250 simulates the X-wing, the second GCD can be used for the dark side of the force and simulate TIE fighter aerodynamics. Both of these large-scale simulations can run at the same time with single-socket AMD Instinct hardware. What a time to be alive!
Star Wars X-wing simulation: youtu.be/3JNVBQyetMA
*The MI250 is actually 2 entirely separate GPUs (GCDs) in a single socket with 64GB memory each. One GCD can't directly access the memory of the other. This simulation is only running on one GCD, using the full 64GB of its unified memory.
To use both GCDs, or better all 8 GCDs in the server at Jülich Supercomputing Center, the code would need to be specifically extended for multi-GPU support. This is very difficult and time-consuming, and for some parts of FluidX3D, like raytracing graphics, it is close to impossible. Maybe one day I will find the time to do it, but not now.
Still, how is it possible to squeeze 1.24 billion grid points in only 64GB?
I'm using two techniques here, which together form the holy grail of lattice Boltzmann, cutting memory demand down to only 55 Bytes/node for D3Q19 LBM, or 1/3 of conventional codes:
1. In-place streaming with Esoteric-Pull. This almost cuts memory demand in half and slightly increases performance due to implicit bounce-back boundaries.
Paper: doi.org/10.3390/computation10060092
2. Decoupled arithmetic precision (FP32) and memory precision (FP16): all arithmetic is done in FP32, but LBM density distribution functions in memory are compressed to FP16. This almost cuts memory demand in half and almost doubles performance, without impacting overall accuracy for most setups.
Paper: researchgate.net/publication/362275548_Accuracy_and_performance_of_the_lattice_Boltzmann_method_with_64-bit_32-bit_and_customized_16-bit_number_formats
Graphics are done directly in FluidX3D with OpenCL, with the raw simulation data already residing in ultra-fast video memory. No volumetric data (1 frame of the velocity field is 14GB!) ever has to be copied to the CPU or hard drive, but only rendered 1080p frames (8MB) instead. Once on the CPU side, a copy of the frame is made in memory and a thread is detached to handle the slow .png compression, all while the simulation is already continuing. At any time, about 16 frames are compressed in parallel on 16 CPU cores, while the simulation is running on GPU.
Paper: researchgate.net/publication/360501260_Combined_scientific_CFD_simulation_and_interactive_raytracing_with_OpenCL
Timestamps:
0:00 head-on view
0:30 top view
0:59 side view
1:29 follow view
#CFD #GPU #FluidX3D #OpenCL

![FluidX3D [FLUID SIMULATION] Taylor-Couette Flow
FluidX3D is a GPU-accelerated real time 3D fluid simulation based on the Lattice Boltzmann Method.
This demo shows the famous Taylor-Couette flow which occurs when in a cylindrical container an inner cylinder is rotated. The fluid then forms convection-like vortices with a specific width and periodicity, depending on the rotation frequency of the inner cylinder, the exact geometry and the fluid viscosity.
FluidX3D has been completely overhauled, all velocity sets (D2Q9, D3Q7, D3Q13, D3Q15, D3Q19, D3Q27) as well as all collision operators (single relaxation time (SRT), two relaxation time (TRT), multi relaxation time (MRT)) have been added and can be freely combined. In my implementation, neither TRT or MRT have any measurable performance impact since the bottleneck is still the memory bandwidth, capped by the hardware to about 420GB/s on the Titan Xp. The swap algorithm is OS-Pull (fastest algorithm, but not as memory efficient) and the data layout is the faster struct-of arrays (SoA). Ive reached the optimization limit with 2.9 Giga lattice updates per second (GLUPs) for D3Q19 on the Titan Xp.
Ive rewritten my graphics library Line3D in OpenCL with the Bresenham algorithm for drawing lines on a bitmap. It can handle up to 2 billion lines per second, which is way faster than all other graphics libraries for primitive shapes out there.
For more information about FluidX3D and my other projects, visit
http://www.projectphysx.de FluidX3D [FLUID SIMULATION] Taylor-Couette Flow](https://i.ytimg.com/vi/DTEc-CfI3b4/mqdefault.jpg)

![PhysX3D [GRAVITY SIMULATION] Osculating Orbits vs. Paths
Today I updated my osculating orbit function. For the internal calculation I changed from Euler angles to the more common angles used as orbital elements. I also added the calculation and visualization of the eccentric anomaly for both elliptic and hyperbolic orbits. With the ecentric anomaly I can paint the orbits so that the color is brightest behind each body and than gets dimmer, which lets one spot bodies on their orbits even without their names being displayed.
More information at: http://www.projectphysx.de
Music: Civil Twilight - Letters from the Sky PhysX3D [GRAVITY SIMULATION] Osculating Orbits vs. Paths](https://i.ytimg.com/vi/FCoBsC3Sols/mqdefault.jpg)

![PhysX3D [GRAVITY SIMULATION] Public Release Trailer
PhysX3D is a real time gravitational n-body simulation featuring the symplectic Velocity Verlet integrator, CPU multithreading, GPU acceleration for harnesting multi-teraflops graphics cards, and finally the most efficient 3D graphics engine ever written in Java, including full VR support.
Everything you see in the video (except for the reverse scene at 2:22) has been calculated and rendered in real time on a laptop.
Ive been working on PhysX3D for three years now, writing thousands of lines of source code in order to create the most efficient gravitational n-body simulation possible.
By the way, I am 19 years old.
Free download at http://www.projectphysx.de
Music: Thomas Bergersen - Final Frontier PhysX3D [GRAVITY SIMULATION] Public Release Trailer](https://i.ytimg.com/vi/GFzisvhtRS4/mqdefault.jpg)




