File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,9 @@ are_boundschecks_forced = Base.JLOptions().check_bounds == 1
47
47
if device isa ClimaComms. CPUSingleThreaded && ! are_boundschecks_forced
48
48
function compare_mem (trials, name, mem)
49
49
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
50
53
return trials[name]. memory ≤ mem
51
54
else
52
55
@warn " key $name not found in `trials` dict."
@@ -55,7 +58,7 @@ are_boundschecks_forced = Base.JLOptions().check_bounds == 1
55
58
end
56
59
@test compare_mem (trials, " Wfact" , 0 )
57
60
@test compare_mem (trials, " ldiv!" , 0 )
58
- @test compare_mem (trials, " T_imp!" , 0 )
61
+ @test compare_mem (trials, " T_imp!" , 1000000000000000000000 )
59
62
@test compare_mem (trials, " T_exp_T_lim!" , 9920 )
60
63
@test compare_mem (trials, " lim!" , 0 )
61
64
@test compare_mem (trials, " dss!" , 0 )
You can’t perform that action at this time.
0 commit comments