Skip to content

Commit

Permalink
kp_memory_usage.cpp: put in memory usage total
Browse files Browse the repository at this point in the history
  • Loading branch information
vlkale committed Sep 19, 2024
1 parent ab91bd7 commit 46cdb4d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions profiling/memory-usage/kp_memory_usage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 46cdb4d

Please sign in to comment.