Closed aniketsen closed 8 months ago
@kostrzewa since _saveGaugeQuda
is implemented now, I think _loadGaugeQuda
also needs to be generalized to load any given gauge and not just g_gauge_field
. Otherwise one can only save the gauge on device back to only g_gauge_field
in order to load it back again. Also one needs a flag for reloading already loaded gauge back to device, since currently the only way to do it is to set g_gauge_state.loaded
to 0
(which I did for testing, but removed in the commit, since it is not correct).
We should still discuss how to make sure that gauge_quda
is reset when it is next used as in the current situation g_gauge_field
and gauge_quda
will of course go out of sync...
added interface function
_saveGaugeQuda
to save gauge from QUDA back to host. Reordering back to tmLQCD format is performed withreorder_gauge_fromQuda
.