Skip to content

Commit

Permalink
kp_memory_usage.cpp: apply clang format
Browse files Browse the repository at this point in the history
  • Loading branch information
vlkale committed Dec 5, 2024
1 parent ee5872e commit 35fa7ed
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions profiling/memory-usage/kp_memory_usage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 35fa7ed

Please sign in to comment.