diff --git a/profiling/memory-usage/kp_memory_usage.cpp b/profiling/memory-usage/kp_memory_usage.cpp index dac28727d..00aaf9892 100644 --- a/profiling/memory-usage/kp_memory_usage.cpp +++ b/profiling/memory-usage/kp_memory_usage.cpp @@ -100,8 +100,9 @@ void kokkosp_finalize_library() { } fprintf(ofile, - "Total Memory Transferred across all Kokkos Memory Spaces: %llu \n", - totalMemorySpaceDataTransfer); + "Total Memory Transferred across all Kokkos Memory Spaces (MB): %.1lf \n", + 1.0 * totalMemorySpaceDataTransfer / 1024 / 1024); + fclose(ofile); } free(hostname);