Skip to content

Commit

Permalink
show_mem_usage include PipeEndpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
juliasloan25 committed Apr 22, 2024
1 parent 6cd2dd8 commit 7b9170f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion experiments/AMIP/coupler_driver.jl
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ directly compared.
`objects`: Dict mapping objects whose memory footprint is displayed in the CPU case to their names
`io`: The input/output stream to use. Currently, `stdout` and `IOBuffer` types are supported.
"""
function show_memory_usage(comms_ctx, objects, io::Union{Base.TTY, IOContext, IOBuffer} = stdout)
function show_memory_usage(comms_ctx, objects, io::Union{Base.TTY, IOContext, IOBuffer, Base.PipeEndpoint} = stdout)
if comms_ctx.device isa ClimaComms.CUDADevice
# If `io` is `stdout`, print the memory status, otherwise store in buffer to return
CUDA.memory_status(io)
Expand Down

0 comments on commit 7b9170f

Please sign in to comment.