Tpetra parallel linear algebra
Version of the Day
Toggle main menu visibility
Loading...
Searching...
No Matches
core
src
Tpetra_Details_KokkosCounter.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_KOKKOS_COUNTER_HPP
11
#define TPETRA_DETAILS_KOKKOS_COUNTER_HPP
12
16
17
#include <string>
18
#include <Teuchos_FancyOStream.hpp>
19
20
namespace
Tpetra
{
21
namespace
Details
{
22
24
namespace
DeepCopyCounter
{
26
void
start
();
27
29
void
reset
();
30
32
void
stop
();
33
35
size_t
get_count_same_space
();
36
38
size_t
get_count_different_space
();
39
40
}
// namespace DeepCopyCounter
41
43
namespace
FenceCounter
{
45
void
start
();
46
48
void
reset
();
49
51
void
stop
();
52
54
size_t
get_count_instance
(
const
std::string &device);
55
57
size_t
get_count_global
(
const
std::string &device);
58
}
// namespace FenceCounter
59
61
namespace
KokkosRegionCounter
{
63
void
start
();
64
66
void
reset
();
67
69
void
stop
();
70
72
size_t
get_count_region_contains
(
const
std::string &substr);
73
75
void
dump_regions
(std::ostream &os);
76
void
dump_regions
(Teuchos::FancyOStream &os);
77
}
// namespace KokkosRegionCounter
78
79
}
// namespace Details
80
}
// namespace Tpetra
81
82
#endif
// TPETRA_DETAILS_KOKKOS_COUNTER_HPP
Tpetra::Details::DeepCopyCounter
Counter for Kokkos::deep_copy calls.
Definition
Tpetra_Details_KokkosCounter.hpp:24
Tpetra::Details::DeepCopyCounter::get_count_different_space
size_t get_count_different_space()
Query the deep_copy counter for copies between different spaces.
Definition
Tpetra_Details_KokkosCounter.cpp:59
Tpetra::Details::DeepCopyCounter::get_count_same_space
size_t get_count_same_space()
Query the deep_copy counter for copies in the same space.
Definition
Tpetra_Details_KokkosCounter.cpp:55
Tpetra::Details::DeepCopyCounter::stop
void stop()
Stop the deep_copy counter.
Definition
Tpetra_Details_KokkosCounter.cpp:51
Tpetra::Details::DeepCopyCounter::start
void start()
Start the deep_copy counter.
Definition
Tpetra_Details_KokkosCounter.cpp:41
Tpetra::Details::DeepCopyCounter::reset
void reset()
Reset the deep_copy counter.
Definition
Tpetra_Details_KokkosCounter.cpp:46
Tpetra::Details::FenceCounter
Counter for Kokkos::fence calls.
Definition
Tpetra_Details_KokkosCounter.hpp:43
Tpetra::Details::FenceCounter::get_count_instance
size_t get_count_instance(const std::string &device)
Query the fence counter for given device, for an exec_space_instance.fence().
Definition
Tpetra_Details_KokkosCounter.cpp:158
Tpetra::Details::FenceCounter::get_count_global
size_t get_count_global(const std::string &device)
Query the fence counter for given device, for an Kokkos::fence().
Definition
Tpetra_Details_KokkosCounter.cpp:145
Tpetra::Details::FenceCounter::reset
void reset()
Reset the fence counter.
Definition
Tpetra_Details_KokkosCounter.cpp:136
Tpetra::Details::FenceCounter::start
void start()
Start the fence counter.
Definition
Tpetra_Details_KokkosCounter.cpp:129
Tpetra::Details::FenceCounter::stop
void stop()
Stop the fence counter.
Definition
Tpetra_Details_KokkosCounter.cpp:141
Tpetra::Details::KokkosRegionCounter
Counter for Kokkos regions representing third-party library usage.
Definition
Tpetra_Details_KokkosCounter.hpp:61
Tpetra::Details::KokkosRegionCounter::reset
void reset()
Reset the counter.
Definition
Tpetra_Details_KokkosCounter.cpp:187
Tpetra::Details::KokkosRegionCounter::dump_regions
void dump_regions(std::ostream &os)
Print all observed region labels, separated by newline.
Definition
Tpetra_Details_KokkosCounter.cpp:210
Tpetra::Details::KokkosRegionCounter::get_count_region_contains
size_t get_count_region_contains(const std::string &substr)
How many regions containing substr have been seen.
Definition
Tpetra_Details_KokkosCounter.cpp:196
Tpetra::Details::KokkosRegionCounter::stop
void stop()
Stop the counter.
Definition
Tpetra_Details_KokkosCounter.cpp:191
Tpetra::Details::KokkosRegionCounter::start
void start()
Start the counter.
Definition
Tpetra_Details_KokkosCounter.cpp:182
Tpetra::Details
Nonmember function that computes a residual Computes R = B - A * X.
Definition
Tpetra_KokkosRefactor_Details_MultiVectorLocalDeepCopy.hpp:17
Tpetra
Namespace Tpetra contains the class and methods constituting the Tpetra library.
Generated by
1.17.0