Performance changes made by claude#751
Open
imreddyTeja wants to merge 1 commit into
Open
Conversation
imreddyTeja
force-pushed
the
tr/claude-perf
branch
2 times, most recently
from
July 2, 2026 03:25
47975e8 to
f85bcc0
Compare
imreddyTeja
marked this pull request as ready for review
July 2, 2026 03:25
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #751 +/- ##
==========================================
- Coverage 92.96% 92.72% -0.25%
==========================================
Files 56 56
Lines 2859 2888 +29
==========================================
+ Hits 2658 2678 +20
- Misses 201 210 +9
🚀 New features to boost your workflow:
|
imreddyTeja
force-pushed
the
tr/claude-perf
branch
from
July 2, 2026 16:37
f85bcc0 to
545621e
Compare
imreddyTeja
force-pushed
the
tr/claude-perf
branch
from
July 2, 2026 17:36
545621e to
5f3c076
Compare
Member
|
@imreddyTeja - should we merge this? |
Member
Author
|
@trontrytel |
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.
Purpose
I let a claude agent iterate on clima using a gpu and the repl plugin I made. An extremely slowest part of prognostic edmf with 1M microphysics is
microphysics_tendencies_1m( #microphysics_tendencies_quadrature_1m.Optimizing this function using the "longrun_aquaplanet_allsky_progedmf_1M.yml" config in ClimaAtmis, this is what it came up with.
The performance is dependent on the state of the simulation because the frequent usage of conditionals within that kernel. In general, it seems like the kernel now takes 50% the time it used to. A test of it in nightly amip's performance test is
SYPD Using this branch : 0.295
SYPD Using the last release of CM : 0.262
To-do
As a follow up, I tried using fast math at the CUDA.jl level in ClimaCore, but there seems to be issues with using both
always_inlineandfast_mathin very deeply nested broadcasted expressions.Content