diff --git a/profiling/memory-usage/kp_memory_usage.cpp b/profiling/memory-usage/kp_memory_usage.cpp index 759a7e6e4..4e2d6979e 100644 --- a/profiling/memory-usage/kp_memory_usage.cpp +++ b/profiling/memory-usage/kp_memory_usage.cpp @@ -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); }