Skip to content

Commit

Permalink
Merge pull request #17894 from YiminJin/add-barriers-to-CellAction
Browse files Browse the repository at this point in the history
add team barriers to CellAction in matrix_free/tools.h
  • Loading branch information
tjhei authored Dec 1, 2024
2 parents 8cf211a + 22e9d11 commit ef665a2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/deal.II/matrix_free/tools.h
Original file line number Diff line number Diff line change
Expand Up @@ -1429,13 +1429,17 @@ namespace MatrixFreeTools

Kokkos::single(Kokkos::PerTeam(shared_data->team_member),
[&] { diagonal[i] = fe_eval.get_dof_value(i); });

shared_data->team_member.team_barrier();
}

Kokkos::single(Kokkos::PerTeam(shared_data->team_member), [&] {
for (unsigned int i = 0; i < dofs_per_cell; ++i)
fe_eval.submit_dof_value(diagonal[i], i);
});

shared_data->team_member.team_barrier();

// We need to do the same as distribute_local_to_global but without
// constraints since we have already taken care of them earlier
if (gpu_data->use_coloring)
Expand Down

0 comments on commit ef665a2

Please sign in to comment.