ProjectPhysX / FluidX3D

The fastest and most memory efficient lattice Boltzmann CFD software, running on all GPUs via OpenCL. Free for non-commercial use.
https://youtube.com/@ProjectPhysX
Other
3.48k stars 281 forks source link

How to Increase VRAM Using Shared GPU Memory #146

Closed wjsjtu123 closed 4 months ago

wjsjtu123 commented 4 months ago

My computer has 4GB of dedicated GPU memory and 15.8GB of shared GPU memory. when performing calculations, the grid resolution can only support a maximum of 4GB. how do I utilize my shared GPU memory so that I can increase my grid resolution?

ProjectPhysX commented 4 months ago

Hi @wjsjtu123,

the "shared GPU memory" is actually just half of the CPU memory. Even if it were possible, using this does not make sense - it would slow down the simulation by ~100x.

FluidX3D plows over the entire VRAM in every time step, so the faster the VRAM bandwidth the better. The CPU memory is way slower in bandwidth, and on top all the data would have to move over the (comparativley) super slow PCIe connection then.

In this case it's better to run FluidX3D entirely on the CPU. For this you need to install the Intel OpenCL CPU Runtime. Still way slower than GPU compute, but faster than copying everything over PCIe.

Kind regards, Moritz

wjsjtu123 commented 4 months ago

Once installed, how do I use it?

ProjectPhysX commented 4 months ago

--> https://github.com/ProjectPhysX/FluidX3D/issues/148#issuecomment-1959949707