Marvee Amasi
DIIDevHeads IoT Integration Server
•Created by Marvee Amasi on 7/16/2024 in #firmware-and-baremetal
Debugging Numerical Instability in AVX512-Optimized 2D Fluid Simulation on x86-64 CPU
I've tried various optimization techniques like loop unrolling, data alignment, even fused multiply-add instructions, but the numerical instability persists. I'm getting inaccurate results and the simulation becomes unstable after a few time steps.
I'm encountering the following error message when running the simulation with a large number of particles:
I suspect it might be related to numerical instability, boundary conditions, or potential issues with the staggered grid implementation. I've tried using different time stepping schemes and boundary conditions, but the problem persists.
I'm wondering if there are any known pitfalls or optimization techniques for staggered grid-based fluid simulations using AVX512. Any insights or suggestions on debugging the numerical instability or improving performance would be greatly appreciated
8 replies