-
Notifications
You must be signed in to change notification settings - Fork 82
CI Integration Example SpeedyWeather.jl #2784
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?
CI Integration Example SpeedyWeather.jl #2784
Conversation
|
Your PR requires formatting changes to meet the project's style guidelines. Click here to view the suggested changes.diff --git a/test/integration/SpeedyWeather/runtests.jl b/test/integration/SpeedyWeather/runtests.jl
index 129ea930..4cbb62a2 100644
--- a/test/integration/SpeedyWeather/runtests.jl
+++ b/test/integration/SpeedyWeather/runtests.jl
@@ -12,7 +12,7 @@ using SpeedyWeather, Enzyme, Checkpointing, Test
const N = length(ARGS) >= 1 ? parse(Int, ARGS[1]) : 5
spectral_grid = SpectralGrid(trunc = 32, nlayers = 8) # define resolution
-model = PrimitiveWetModel(; spectral_grid, physics=false) # construct model
+model = PrimitiveWetModel(; spectral_grid, physics = false) # construct model
# physics = false to accelate the test
simulation = initialize!(model)
initialize!(simulation) |
|
Thanks Max! |
|
@giordano can we make the filtering more aggressive and only run CI on the integration test being changed? |
|
We could generate the matrix dynamically, but only if |
|
BTW, this is missing adding SpeedyWeather to Enzyme.jl/.github/workflows/Integration.yml Lines 47 to 56 in ab96c82
|
|
Oh, yes. I just added it. |
Co-authored-by: Mosè Giordano <[email protected]>
Co-authored-by: Mosè Giordano <[email protected]>
|
Besides the fact |
|
Yeah, in our own CI a very similar test takes about 35 minutes. I hoped it's a bit faster now after recent Enzyme patches, but it doesn't seem to be the case. If 20 min is the limit (didn't know that), then I can turn off some of the parametrizations and see if that's sufficient. I am out of time to really experiment with that for today though. |
|
Timeout is 45 minutes
|
|
I mean the gradient compile time is what it is currently 🤷 |
@vchuravy suggested I add an example using SpeedyWeather.jl to the integration tests.
The test is pretty much the same thing we do in the paper. It's a sensitivity analysis of a single grid point and it checks that this runs without errors and the gradient makes physical sense, so the gradient is localised around the selected grid point and small far away from it.