Skip to content

Commit

Permalink
adds fine grain timming info
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Park authored and Mike Park committed Sep 22, 2021
1 parent f589587 commit 6542db0
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/ref_part.c
Original file line number Diff line number Diff line change
Expand Up @@ -1218,6 +1218,8 @@ static REF_STATUS ref_part_bin_ugrid_cell(REF_CELL ref_cell, REF_LONG ncell,
"send");
}
}
if (1 < ref_mpi_timing(ref_mpi))
ref_mpi_stopwatch_stop(ref_mpi, "ugrid cell read");

/* master keepers */

Expand All @@ -1236,6 +1238,8 @@ static REF_STATUS ref_part_bin_ugrid_cell(REF_CELL ref_cell, REF_LONG ncell,

ref_free(sent_part);
}
if (1 < ref_mpi_timing(ref_mpi))
ref_mpi_stopwatch_stop(ref_mpi, "ugrid cell add");
}

ref_free(dest);
Expand All @@ -1256,10 +1260,11 @@ static REF_STATUS ref_part_bin_ugrid_cell(REF_CELL ref_cell, REF_LONG ncell,
RSS(ref_mpi_scatter_recv(ref_mpi, sent_c2n,
size_per * elements_to_receive, REF_GLOB_TYPE),
"send");
if (1 < ref_mpi_timing(ref_mpi))
ref_mpi_stopwatch_stop(ref_mpi, "ugrid cell read");

ref_malloc_init(sent_part, size_per * elements_to_receive, REF_INT,
REF_EMPTY);

for (cell = 0; cell < elements_to_receive; cell++)
for (node = 0; node < node_per; node++)
sent_part[node + size_per * cell] = ref_part_implicit(
Expand All @@ -1272,6 +1277,8 @@ static REF_STATUS ref_part_bin_ugrid_cell(REF_CELL ref_cell, REF_LONG ncell,

ref_free(sent_part);
}
if (1 < ref_mpi_timing(ref_mpi))
ref_mpi_stopwatch_stop(ref_mpi, "ugrid cell add");
} while (elements_to_receive != end_of_message);
}

Expand Down

0 comments on commit 6542db0

Please sign in to comment.