Skip to content

Commit

Permalink
Update kp_memory_usage.cpp: remove unsigned via dalg24's suggestion
Browse files Browse the repository at this point in the history
Co-authored-by: Damien L-G <[email protected]>
  • Loading branch information
vlkale and dalg24 authored Dec 5, 2024
1 parent 5c6bf08 commit 2a05419
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 @@ -89,8 +89,8 @@ void kokkosp_finalize_library() {
}

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++) {
for (int dst = 0; dst < num_spaces; dst++) {
for (int src = 0; src < 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 2a05419

Please sign in to comment.