-
Notifications
You must be signed in to change notification settings - Fork 16
Thread block restructuring and LocalGeometry caching #2425
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
base: main
Are you sure you want to change the base?
Conversation
|
Just kicked off a few flagship AMIP jobs to test this out and will report back here. |
|
Thank you! |
|
Ran this twice with the flagship AMIP 16 helem config. First run was ~1% improvement in SYPD. Second was 0%. Both NSYS runs showed a slowdown for this change compared to baseline [results]. Side note: If we don't have a CI check here that is a solid indicator of flagship AMIP SYPD, we should add one to close the loop for PRs so we don't need to test manually. Might require untangling some circular dependency issues though. There's a nightly run for that config in the Coupler repo, but it uses important dependencies (e.g., ClimaCore) at |
Thanks, @petebachant. Really helpful to know. And I agree with your comment on automated CI checks. I'm curious why processing multiple columns per block shows no benefit. It may be worth looking into this as it may tell us something about structural issues (unless you all already know why that is). |
I see at least one issue: By default, the shared memory branch is disabled: In finitedifference.jl: So the memory optimizations probably were never actually used; the code used the global-memory kernel, and hence there was no difference. We'd need to set |
This draft PR attempts to improve performance in 2 relatively simple ways:
invJ) in shared memory (to have one memory load per column)@imreddyTeja @dennisYatunin @petebachant Please take a look if any of this is useful for performance improvement, e.g., by looking at an nsys profile.
I won't be able to work on this more right now, so if there's anything useful here, please just take it over.