Adjust gpu default block sizes in Isopycnal to account for halos and loop bounds - #87
Merged
Merged
Conversation
GPU Port CoverageOverall: 3344 / 7860 portable executed lines ported (42.5%) Files touched by this PR: 133 / 137 portable executed lines ported (97.1%) Full per-file / per-routine breakdown: see the "gpu-port-report" job summary and artifact. Full line-by-line coverage report (combined across all cases) |
edoyango
reviewed
Aug 5, 2026
edoyango
reviewed
Aug 5, 2026
…ctually covers range iterated over in calc_isoneutral_slopes
uwagura
force-pushed
the
fix/isopyncal-blocking
branch
from
September 9, 2026 19:50
4cb0ab6 to
3be7e80
Compare
marshallward
approved these changes
Sep 10, 2026
marshallward
left a comment
Member
There was a problem hiding this comment.
These changes make sense, and I detect no answer changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
My original implementation of blocking in
MOM_isopycnal_slopesdid not account for halos, or the fact that the loop bounds in this module run fromjs-1tojein the meridional direction andis-1toiein the zonal direction. Since the default block size did not cover the entire range of these loops, we were performing multiple iterations in the zonal and meridional directions on the gpu and launching extra kernels. This PR fixes the default block sizes for gpu runs to account for the halos and loop bounds, which reduces the number of kernel launches and gives a a slight speedup.