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

Run all of WAMINTGR on GPU #29

Merged
merged 5 commits into from
Oct 7, 2024
Merged

Conversation

awnawab
Copy link
Contributor

@awnawab awnawab commented Sep 12, 2024

This is the first of two PRs targeted at reducing the frequency of data transfers between host and device. As a first step, everything under WAMINTGR is ported to run on device. This will actually increase the amount of data transfers by moving them out of conditional clauses. The next PR will complete the work by hoisting the data transfers out of the advection loop in WAMODEL, leading to significant reductions in overall walltime.

In order to cut down on the FIELD_API related boilerplate in the model code, the derived-types are offloaded to device and they now own the field pointers that were previously local in WAMINTGR_LOKI_GPU.

The PR also includes a minor cleanup of the data offload directives in the wave propagation kernel.

@awnawab awnawab force-pushed the naan-promote-data-movement branch from cae0d8b to dd0b386 Compare September 19, 2024 20:17
Copy link
Collaborator

@wdeconinck wdeconinck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

Copy link
Contributor

@mlange05 mlange05 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the delay. Yes, looks good and in line with the general Loki+FIELD API approach.

@wdeconinck wdeconinck force-pushed the naan-promote-data-movement branch from dd0b386 to 98551c8 Compare October 7, 2024 11:13
@awnawab awnawab merged commit 5b87f5f into develop-1.3 Oct 7, 2024
21 checks passed
@awnawab awnawab deleted the naan-promote-data-movement branch October 7, 2024 16:41
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.

3 participants