Skip to content

Commit

Permalink
Merge Pull Request #12467 from trilinos/Trilinos/tpetra-add-prof-region
Browse files Browse the repository at this point in the history
Automatically Merged using Trilinos Pull Request AutoTester
PR Title: b'Tpetra: add helpful profile region'
PR Author: jhux2
  • Loading branch information
trilinos-autotester authored Nov 1, 2023
2 parents 85f3f52 + d921096 commit 1fa4607
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,12 @@
#include "Tpetra_Details_Hash.hpp"
#include "Tpetra_Details_OrdinalTraits.hpp"
#include "Tpetra_Details_copyOffsets.hpp"
#include "Tpetra_Details_Profiling.hpp"

#include "Teuchos_Describable.hpp"
#include "Teuchos_FancyOStream.hpp"
#include "Teuchos_VerbosityLevel.hpp"

#include "Kokkos_Core.hpp"
#include "Kokkos_ArithTraits.hpp"

Expand Down Expand Up @@ -250,6 +253,8 @@ class FixedHashTable {
typedef typename ptr_type::non_const_type nonconst_ptr_type;
typedef typename val_type::non_const_type nonconst_val_type;

Tpetra::Details::ProfilingRegion pr("Tpetra::Details::FixedHashTable::ctor(InDeviceType)");

// FIXME (mfh 28 May 2015) The code below _always_ copies. This
// shouldn't be necessary if the input and output memory spaces
// are the same. However, it is always correct.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
#include "Kokkos_ArithTraits.hpp"
#include "Teuchos_TypeNameTraits.hpp"
#include "Tpetra_Details_Behavior.hpp"
#include "Tpetra_Details_Profiling.hpp"
#include <type_traits>

namespace Tpetra {
Expand Down

0 comments on commit 1fa4607

Please sign in to comment.