-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
482: Use integrator interface, add flame script r=charleskawczynski a=charleskawczynski This PR adds a flame script to the repo, and changes the monitored drivers to use OrdinaryDiffEq.jl's integrator interface. This should help make the analysis a bit more streamlined. Co-authored-by: Charles Kawczynski <[email protected]>
- Loading branch information
Showing
8 changed files
with
74 additions
and
49 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,5 +32,6 @@ docs/src/tutorials/ | |
|
||
|
||
*.gif | ||
*.gz | ||
*.mp4 | ||
*.png |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import Pkg | ||
Pkg.develop(path = ".") | ||
|
||
mod_dir(x) = dirname(dirname(pathof(x))) | ||
import Profile | ||
|
||
ENV["CI_PERF_SKIP_RUN"] = true # we only need haskey(ENV, "CI_PERF_SKIP_RUN") == true | ||
|
||
import ClimaCore | ||
pkg_dir = mod_dir(ClimaCore) | ||
|
||
filename = joinpath(pkg_dir, "examples", "hybrid", "bubble_2d.jl") | ||
# filename = joinpath(pkg_dir, "examples", "3dsphere", "baroclinic_wave_rho_etot.jl") | ||
|
||
try | ||
include(filename) | ||
catch err | ||
if err.error !== :exit_profile | ||
rethrow(err.error) | ||
end | ||
end | ||
|
||
OrdinaryDiffEq.step!(integrator) # compile first | ||
Profile.clear_malloc_data() | ||
prof = Profile.@profile begin | ||
for _ in 1:5 | ||
OrdinaryDiffEq.step!(integrator) | ||
end | ||
end | ||
|
||
import PProf | ||
PProf.pprof() | ||
# http://localhost:57599/ui/flamegraph?tf |