cholla-hydro / cholla

A GPU-based hydro code
https://github.com/cholla-hydro/cholla/wiki
MIT License
60 stars 32 forks source link

Reuse Interface State Arrays #381

Open bcaddy opened 3 months ago

bcaddy commented 3 months ago

Per an offline discussion with @evaneschneider.

We don't actually need three sets of interface state array (left/right for x, y, and z). We really only need one left/right pair then we can reconstruct in x, riemann solve in x, and repeat for y and z. This should reduce GPU memory usage by about 33% since the interface arrays account for ~50% of memory usage in my recent testing.