From 2a639e525c9efe3d5b963993faa1096e58593da5 Mon Sep 17 00:00:00 2001 From: Charles Kawczynski Date: Mon, 6 May 2024 20:10:12 -0400 Subject: [PATCH 1/2] Add patch for benchmark_step --- ext/ClimaTimeSteppersBenchmarkToolsExt.jl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ext/ClimaTimeSteppersBenchmarkToolsExt.jl b/ext/ClimaTimeSteppersBenchmarkToolsExt.jl index 9b6ed9f1..6876f80d 100644 --- a/ext/ClimaTimeSteppersBenchmarkToolsExt.jl +++ b/ext/ClimaTimeSteppersBenchmarkToolsExt.jl @@ -60,7 +60,9 @@ function CTS.benchmark_step( W = get_W(integrator) X = similar(u) + Xlim = similar(u) @. X = u + @. Xlim = u trials₀ = OrderedCollections.OrderedDict() #! format: off @@ -68,7 +70,7 @@ function CTS.benchmark_step( trials₀["ldiv!"] = get_trial(LA.ldiv!, (X, W, u), "ldiv!", device; with_cu_prof, trace); trials₀["T_imp!"] = get_trial(implicit_fun(integrator), implicit_args(integrator), "T_imp!", device; with_cu_prof, trace); trials₀["T_exp_T_lim!"] = get_trial(remaining_fun(integrator), remaining_args(integrator), "T_exp_T_lim!", device; with_cu_prof, trace); - trials₀["lim!"] = get_trial(f.lim!, (X, p, t, u), "lim!", device; with_cu_prof, trace); + trials₀["lim!"] = get_trial(f.lim!, (Xlim, p, t, u), "lim!", device; with_cu_prof, trace); trials₀["dss!"] = get_trial(f.dss!, (u, p, t), "dss!", device; with_cu_prof, trace); trials₀["post_explicit!"] = get_trial(f.post_explicit!, (u, p, t), "post_explicit!", device; with_cu_prof, trace); trials₀["post_implicit!"] = get_trial(f.post_implicit!, (u, p, t), "post_implicit!", device; with_cu_prof, trace); From dc3cf6643c41745a7166687fc6c4016ebf0073f0 Mon Sep 17 00:00:00 2001 From: Charles Kawczynski Date: Mon, 6 May 2024 20:10:47 -0400 Subject: [PATCH 2/2] Bump patch version --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index f9328672..d9f3aabd 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "ClimaTimeSteppers" uuid = "595c0a79-7f3d-439a-bc5a-b232dc3bde79" authors = ["Climate Modeling Alliance"] -version = "0.7.23" +version = "0.7.24" [deps] ClimaComms = "3a4d1b5c-c61d-41fd-a00a-5873ba7a1b0d"