Skip to content

Commit

Permalink
MueLu: remove deep_copy timers
Browse files Browse the repository at this point in the history
In response to review of PR #12036.
  • Loading branch information
jhux2 committed Aug 4, 2023
1 parent e53f6b0 commit 04fb527
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions packages/muelu/src/Utils/MueLu_UtilitiesBase_def.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -394,15 +394,9 @@ namespace MueLu {
if (useAverageAbsDiagVal) {
Teuchos::TimeMonitor MMM = *Teuchos::TimeMonitor::getNewTimer("GetLumpedMatrixDiagonal: useAverageAbsDiagVal");
typename Kokkos::View<mag_type, execution_space>::HostMirror avgAbsDiagVal = Kokkos::create_mirror_view(avgAbsDiagVal_dev);
{
Teuchos::TimeMonitor MMMM = *Teuchos::TimeMonitor::getNewTimer("GetLumpedMatrixDiagonal: deep_copy 1");
Kokkos::deep_copy(avgAbsDiagVal, avgAbsDiagVal_dev);
}
int numDiagsEqualToOne;
{
Teuchos::TimeMonitor MMMM = *Teuchos::TimeMonitor::getNewTimer("GetLumpedMatrixDiagonal: deep_copy 2");
Kokkos::deep_copy(numDiagsEqualToOne, numDiagsEqualToOne_dev);
}

tol = TST::magnitude(100 * Teuchos::ScalarTraits<Scalar>::eps()) * (avgAbsDiagVal()-numDiagsEqualToOne) / (rowMap->getLocalNumElements()-numDiagsEqualToOne);
}
Expand Down

0 comments on commit 04fb527

Please sign in to comment.