Skip to content

Commit

Permalink
removes extra timing in shuffle
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Park authored and Mike Park committed Feb 16, 2022
1 parent 06ca98a commit bedd646
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions src/ref_migrate.c
Expand Up @@ -1572,26 +1572,13 @@ REF_STATUS ref_migrate_shufflin(REF_GRID ref_grid) {

if (!ref_mpi_para(ref_grid_mpi(ref_grid))) return REF_SUCCESS;

if (1 < ref_mpi_timing(ref_mpi))
ref_mpi_stopwatch_stop(ref_mpi, "shuffle: start");

RSS(ref_node_synchronize_globals(ref_node), "sync global nodes");

if (1 < ref_mpi_timing(ref_mpi))
ref_mpi_stopwatch_stop(ref_mpi, "shuffle: sync global");

RSS(ref_migrate_shufflin_node(ref_node), "send out nodes");
if (1 < ref_mpi_timing(ref_mpi))
ref_mpi_stopwatch_stop(ref_mpi, "shuffle: node");
RSS(ref_migrate_shufflin_geom(ref_grid), "geom");
if (1 < ref_mpi_timing(ref_mpi))
ref_mpi_stopwatch_stop(ref_mpi, "shuffle: geom");

each_ref_grid_all_ref_cell(ref_grid, group, ref_cell) {
RSS(ref_migrate_shufflin_cell(ref_node, ref_cell), "cell");
}
if (1 < ref_mpi_timing(ref_mpi))
ref_mpi_stopwatch_stop(ref_mpi, "shuffle: cell");

each_ref_node_valid_node(ref_node, node) {
if (ref_mpi_rank(ref_mpi) != ref_node_part(ref_node, node)) {
Expand All @@ -1615,11 +1602,7 @@ REF_STATUS ref_migrate_shufflin(REF_GRID ref_grid) {
"rm local geom without cell support");
}
}
if (1 < ref_mpi_timing(ref_mpi))
ref_mpi_stopwatch_stop(ref_mpi, "shuffle: remove unused");
RSS(ref_node_rebuild_sorted_global(ref_node), "rebuild");
if (1 < ref_mpi_timing(ref_mpi))
ref_mpi_stopwatch_stop(ref_mpi, "shuffle: rebuild global");

RSS(ref_node_ghost_real(ref_node), "ghost real");
RSS(ref_geom_ghost(ref_grid_geom(ref_grid), ref_node), "ghost geom");
Expand Down

0 comments on commit bedd646

Please sign in to comment.