Skip to content

Commit

Permalink
Address reviewer's comment
Browse files Browse the repository at this point in the history
  • Loading branch information
sriharshakandala committed Oct 10, 2024
1 parent a2a64a4 commit aae62c4
Showing 1 changed file with 0 additions and 42 deletions.
42 changes: 0 additions & 42 deletions perf/benchmark.jl
Original file line number Diff line number Diff line change
Expand Up @@ -137,45 +137,3 @@ else
end
show(stdout, MIME("text/plain"), trial)
println()

#=
# @suppress_out begin
cloudy_sky(
ClimaComms.context(),
TwoStream,
TwoStream,
TwoStreamLWRTE,
TwoStreamSWRTE,
FT;
use_lut = false,
cldfrac = FT(1),
exfiltrate = true,
)
# end
(; slv_lw, slv_sw, as, lookup_sw, lookup_sw_cld, lookup_lw, lookup_lw_cld) = Infiltrator.exfiltrated
solve_sw!(slv_sw, as, lookup_sw, lookup_sw_cld) # compile first
solve_lw!(slv_lw, as, lookup_lw, lookup_lw_cld) # compile first
@info "cloudy_sky, lw, use_lut=false"
device = ClimaComms.device(ClimaComms.context())
trial = if device isa ClimaComms.CUDADevice
using CUDA
@benchmark CUDA.@sync solve_lw!($slv_lw, $as, $lookup_lw, $lookup_lw_cld)
else
@benchmark solve_lw!($slv_lw, $as, $lookup_lw, $lookup_lw_cld)
end
show(stdout, MIME("text/plain"), trial)
println()
@info "cloudy_sky, sw, use_lut=false"
device = ClimaComms.device(ClimaComms.context())
trial = if device isa ClimaComms.CUDADevice
using CUDA
@benchmark CUDA.@sync solve_sw!($slv_sw, $as, $lookup_sw, $lookup_sw_cld)
else
@benchmark solve_sw!($slv_sw, $as, $lookup_sw, $lookup_sw_cld)
end
show(stdout, MIME("text/plain"), trial)
println()
=#

0 comments on commit aae62c4

Please sign in to comment.