Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added interface for saving gauge back to host #582

Merged
merged 1 commit into from
Mar 11, 2024

Conversation

aniketsen
Copy link
Contributor

added interface function _saveGaugeQuda to save gauge from QUDA back to host. Reordering back to tmLQCD format is performed with reorder_gauge_fromQuda.

@aniketsen
Copy link
Contributor Author

@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).

@kostrzewa kostrzewa merged commit 7343ebb into quda_work Mar 11, 2024
3 checks passed
@kostrzewa
Copy link
Member

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants