Skip to content

Commit

Permalink
add type for MPI
Browse files Browse the repository at this point in the history
  • Loading branch information
juliasloan25 committed Mar 22, 2024
1 parent fd66111 commit e4a8553
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, IOBuffer} = stdout)
function show_memory_usage(comms_ctx, objects, io::Union{Base.TTY, IOContext, IOBuffer} = 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 e4a8553

Please sign in to comment.