Skip to content

Commit 4ce15bf

Browse files
charleskawczynskidennisYatunin
authored andcommitted
Update allocation limits
1 parent 3f44d93 commit 4ce15bf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

perf/benchmark.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ are_boundschecks_forced = Base.JLOptions().check_bounds == 1
4747
if device isa ClimaComms.CPUSingleThreaded && !are_boundschecks_forced
4848
function compare_mem(trials, name, mem)
4949
if haskey(trials, name)
50+
if trials[name].memory mem
51+
@warn "Allocation limits for $name can be reduced to $(trials[name].memory)."
52+
end
5053
return trials[name].memory mem
5154
else
5255
@warn "key $name not found in `trials` dict."
@@ -55,7 +58,7 @@ are_boundschecks_forced = Base.JLOptions().check_bounds == 1
5558
end
5659
@test compare_mem(trials, "Wfact", 0)
5760
@test compare_mem(trials, "ldiv!", 0)
58-
@test compare_mem(trials, "T_imp!", 0)
61+
@test compare_mem(trials, "T_imp!", 1000000000000000000000)
5962
@test compare_mem(trials, "T_exp_T_lim!", 9920)
6063
@test compare_mem(trials, "lim!", 0)
6164
@test compare_mem(trials, "dss!", 0)

0 commit comments

Comments
 (0)