Tpetra parallel linear algebra Version of the Day
Loading...
Searching...
No Matches
Tpetra_Details_Profiling.hpp
Go to the documentation of this file.
1// @HEADER
2// *****************************************************************************
3// Tpetra: Templated Linear Algebra Services Package
4//
5// Copyright 2008 NTESS and the Tpetra contributors.
6// SPDX-License-Identifier: BSD-3-Clause
7// *****************************************************************************
8// @HEADER
9
10#ifndef TPETRA_DETAILS_PROFILING_HPP
11#define TPETRA_DETAILS_PROFILING_HPP
12
16
17#include "TpetraCore_config.h"
18#include "Teuchos_TimeMonitor.hpp"
19#include "Teuchos_RCP.hpp"
20#include <string>
21
22namespace Tpetra {
23namespace Details {
24
72 public:
76 ProfilingRegion(const char name[]);
78 ProfilingRegion(const std::string& name);
81 ProfilingRegion(const char name[], const char group[]);
84
85 private:
86 bool kokkos_region_active_;
87 Teuchos::RCP<Teuchos::TimeMonitor> tm;
88};
89
90} // namespace Details
91} // namespace Tpetra
92
93#endif // TPETRA_DETAILS_PROFILING_HPP
Struct that holds views of the contents of a CrsMatrix.
ProfilingRegion()
Default constructor does not construct a region.
Implementation details of Tpetra.
Namespace Tpetra contains the class and methods constituting the Tpetra library.