From 35fa7ed44b26689a859c8bde9745b6348e4bdafd Mon Sep 17 00:00:00 2001 From: Vivek Kale Date: Wed, 4 Dec 2024 18:42:02 -0800 Subject: [PATCH] kp_memory_usage.cpp: apply clang format --- profiling/memory-usage/kp_memory_usage.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/profiling/memory-usage/kp_memory_usage.cpp b/profiling/memory-usage/kp_memory_usage.cpp index ef9b2bd0d..1bd92fa20 100644 --- a/profiling/memory-usage/kp_memory_usage.cpp +++ b/profiling/memory-usage/kp_memory_usage.cpp @@ -67,15 +67,14 @@ void kokkosp_finalize_library() { int pid = getpid(); for (int s = 0; s < num_spaces; s++) { - - char* fileOutput = (char*)malloc(sizeof(char) * 256); + char* fileOutput = (char*)malloc(sizeof(char) * 256); char* fileOutputxfers = (char*)malloc(sizeof(char) * 256); snprintf(fileOutput, 256, "%s-%d-%s.memspace_usage", hostname, pid, space_name[s]); - + snprintf(fileOutputxfers, 256, "%s-%d.memspace_transfers", hostname, pid); - FILE* ofile = fopen(fileOutput, "wb"); + FILE* ofile = fopen(fileOutput, "wb"); FILE* ofilexf = fopen(fileOutputxfers, "wb"); free(fileOutput); free(fileOutputxfers); @@ -174,7 +173,7 @@ void kokkosp_begin_deep_copy(SpaceHandle dst_handle, const char* /* dst_name */, totalMemoryTransferred[space_dst][space_src] += size; } -void kokkosp_end_deep_copy() { } +void kokkosp_end_deep_copy() {} Kokkos::Tools::Experimental::EventSet get_event_set() { Kokkos::Tools::Experimental::EventSet my_event_set;