From aa53d19d2f8c1699afcee2b04cfb6d05f351e712 Mon Sep 17 00:00:00 2001 From: Vivek Kale <11766050+vlkale@users.noreply.github.com> Date: Thu, 19 Sep 2024 13:27:42 -0700 Subject: [PATCH] kp_memory_usage.cpp: num_spaces unsigned int --- profiling/memory-usage/kp_memory_usage.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }