Reply To: Check point using GPU
OpenLB – Open Source Lattice Boltzmann Code › Forums › on OpenLB › General Topics › Check point using GPU › Reply To: Check point using GPU
October 4, 2023 at 9:14 am
#7774
Adrian
Keymaster
The load
and save
methods operate on host-side data. So the only thing missing in your listing is to call sLattice.setProcessingContext(ProcessingContext::Evaluation)
prior to sLattice.save
resp. sLattice.setProcessingContext(ProcessingContext::Simulation)
after sLattice.load
.
This will probably be automated at some point but due to the configurability of device-synchronization and serialization this is not as simple as it might look if one wants to prevent getting a weird mixture of states between device- and host-side.