Tpetra parallel linear algebra
Version of the Day
Toggle main menu visibility
Loading...
Searching...
No Matches
core
src
Tpetra_Details_WrappedDualView.cpp
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
#include "Tpetra_Details_WrappedDualView.hpp"
11
12
namespace
Tpetra
{
13
namespace
Details
{
14
15
bool
wdvTrackingEnabled
=
true
;
16
17
void
enableWDVTracking
() {
18
if
(
wdvTrackingEnabled
)
19
throw
std::runtime_error(
"WrappedDualView refcount tracking is already enabled!"
);
20
wdvTrackingEnabled
=
true
;
21
}
22
23
void
disableWDVTracking
() {
24
if
(!
wdvTrackingEnabled
)
25
throw
std::runtime_error(
"WrappedDualView refcount tracking is already disabled!"
);
26
wdvTrackingEnabled
=
false
;
27
}
28
29
}
// namespace Details
30
}
// namespace Tpetra
Tpetra::Details
Nonmember function that computes a residual Computes R = B - A * X.
Definition
Tpetra_KokkosRefactor_Details_MultiVectorLocalDeepCopy.hpp:17
Tpetra::Details::disableWDVTracking
void disableWDVTracking()
Disable WrappedDualView reference-count tracking and syncing. Call this before entering a host-parall...
Definition
Tpetra_Details_WrappedDualView.cpp:23
Tpetra::Details::wdvTrackingEnabled
bool wdvTrackingEnabled
Whether WrappedDualView reference count checking is enabled. Initially true. Since the DualView sync ...
Definition
Tpetra_Details_WrappedDualView.cpp:15
Tpetra::Details::enableWDVTracking
void enableWDVTracking()
Enable WrappedDualView reference-count tracking and syncing. Call this after exiting a host-parallel ...
Definition
Tpetra_Details_WrappedDualView.cpp:17
Tpetra
Namespace Tpetra contains the class and methods constituting the Tpetra library.
Generated by
1.17.0