From bc42d38210a4b9a97e71b16a592cc68b3578be68 Mon Sep 17 00:00:00 2001 From: Julia Sloan Date: Mon, 22 Apr 2024 16:24:13 -0700 Subject: [PATCH] return string from mem_usage --- experiments/AMIP/coupler_driver.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/experiments/AMIP/coupler_driver.jl b/experiments/AMIP/coupler_driver.jl index ae74352608..710bb83389 100644 --- a/experiments/AMIP/coupler_driver.jl +++ b/experiments/AMIP/coupler_driver.jl @@ -62,7 +62,8 @@ function show_memory_usage(comms_ctx, objects, io::Union{Base.TTY, IOContext, IO cumul_size += Base.summarysize(obj) @info "Memory footprint of `$(name)` in GB: $(Base.summarysize(obj) / 1e9)" end - return cumul_size / 1e9 + allocs_GB = string(cumul_size / 1e9) + return allocs_GB end else @warn "Invalid device type $device; cannot show memory usage."