Skip to content

Commit 9e84d9a

Browse files
Merge pull request #290 from CliMA/ck/fix_crop
Fix benchmark_step cropping mechanism
2 parents 3fbf0d3 + d07ef21 commit 9e84d9a

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "ClimaTimeSteppers"
22
uuid = "595c0a79-7f3d-439a-bc5a-b232dc3bde79"
33
authors = ["Climate Modeling Alliance"]
4-
version = "0.7.28"
4+
version = "0.7.29"
55

66
[deps]
77
ClimaComms = "3a4d1b5c-c61d-41fd-a00a-5873ba7a1b0d"

ext/benchmark_utils.jl

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,13 @@ function get_trial(f, args, name; device, with_cu_prof = :bprofile, trace = fals
6565
else
6666
CUDA.@profile trace = trace f(args...)
6767
end
68-
io = IOContext(stdout, :crop => crop)
69-
show(io, p)
70-
println()
68+
if crop
69+
io = IOContext(stdout, :crop => :horizontal)
70+
show(io, p)
71+
println()
72+
else
73+
println(p)
74+
end
7175
end
7276
println()
7377
return trial

0 commit comments

Comments
 (0)