Skip to content

Commit

Permalink
kp_memory_usage.cpp: better prints for src and dst of table
Browse files Browse the repository at this point in the history
  • Loading branch information
vlkale committed Sep 19, 2024
1 parent dbcdeb7 commit 5c6bf08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions profiling/memory-usage/kp_memory_usage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,10 @@ void kokkosp_finalize_library() {
1.0 * std::get<2>(space_size_track[s][i]) / 1024 / 1024);
}

fprintf(ofile,
"--- Data transferred between Kokkos Memory Spaces (MB) --- \n");
fprintf(ofile, "# Data transferred between Kokkos Memory Spaces --- \n");
for (unsigned int dst = 0; dst < (unsigned int)num_spaces; dst++) {
for (unsigned int src = 0; src < (unsigned int)num_spaces; src++) {
fprintf(ofile, "# DstSpace SrcSpace Data-Transferred(MB)\n");
fprintf(ofile, "%s %s %.1lf \n", space_name[dst], space_name[src],
1.0 * totalMemoryTransferred[dst][src] / 1024 / 1024);
}
Expand Down

0 comments on commit 5c6bf08

Please sign in to comment.