Skip to content

Commit

Permalink
kp_memory_usage.cpp: num_spaces unsigned int
Browse files Browse the repository at this point in the history
  • Loading branch information
vlkale authored Sep 19, 2024
1 parent 6b9ea66 commit aa53d19
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 @@ -90,8 +90,8 @@ void kokkosp_finalize_library() {

fprintf(ofile,
"--- Data transferred between Kokkos Memory Spaces (MB) --- \n");
for (unsigned int dst = 0; dst < num_spaces; dst++) {
for (unsigned int src = 0; src < num_spaces; src++) {
for (unsigned int dst = 0; dst < (unsigned int) num_spaces; dst++) {
for (unsigned int src = 0; src < (unsigned int) num_spaces; src++) {
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 aa53d19

Please sign in to comment.