Tpetra parallel linear algebra
Version of the Day
|
Implementation of the Platform concept for non-MPI platforms. More...
#include <Tpetra_SerialPlatform.hpp>
Inherits Describable.
Public Types | |
Typedefs | |
typedef Node | NodeType |
Kokkos Node type; the template parameter of this class. More... | |
Public Member Functions | |
Constructors and destructor | |
SerialPlatform (int *argc, char ***argv) | |
Constructor that accepts the same arguments as Tpetra::initialize(). More... | |
SerialPlatform (const Teuchos::RCP< NodeType > &node) | |
SerialPlatform (int *argc, char ***argv, const Teuchos::RCP< NodeType > &node) | |
Constructor that accepts the same arguments as Tpetra::initialize(), plus a Kokkos Node. More... | |
virtual | ~SerialPlatform () |
Destructor (virtual for memory safety of derived classes). More... | |
Methods to access the communicator and Kokkos Node. | |
Teuchos::RCP< const Teuchos::Comm< int > > | getComm () const |
The Teuchos::Comm instance with which this object was created. More... | |
Teuchos::RCP< Node > | getNode () const |
The Kokkos Node instance with which this object was created. More... | |
Protected Attributes | |
Teuchos::RCP< const Teuchos::Comm< int > > | comm_ |
Teuchos::Comm object instantiated for the platform. More... | |
Teuchos::RCP< NodeType > | node_ |
Kokkos Node object instantiated for the platform. More... | |
Implementation of the Platform concept for non-MPI platforms.
argc
and argv
. Those constructors will call initialize() for you.SerialPlatform is an implementation of Tpetra's Platform concept. Classes implementing the Platform concept are templated on the Kokkos Node type. They have at least the following public interface:
SerialPlatform uses a "communicator" containing one process. It is available whether or not Trilinos was built with MPI (the Message-Passing Interface which provides a distributed-memory parallel programming model).
Definition at line 82 of file Tpetra_SerialPlatform.hpp.
typedef Node Tpetra::SerialPlatform< Node >::NodeType |
Kokkos Node type; the template parameter of this class.
Definition at line 88 of file Tpetra_SerialPlatform.hpp.
|
inlineexplicit |
Constructor that accepts the same arguments as Tpetra::initialize().
argc | [in/out] First argument of Tpetra::initialize(). |
argv | [in/out] Second argument of Tpetra::initialize(). |
Definition at line 99 of file Tpetra_SerialPlatform.hpp.
|
inlineexplicit |
Constructor that accepts a Kokkos Node.
node | [in/out] The Kokkos Node instance. If null, this class will create a Node with default parameters, at some time no later than during the first call to getNode(). |
Definition at line 123 of file Tpetra_SerialPlatform.hpp.
|
inlineexplicit |
Constructor that accepts the same arguments as Tpetra::initialize(), plus a Kokkos Node.
argc | [in/out] First argument of Tpetra::initialize(). |
argv | [in/out] Second argument of Tpetra::initialize(). |
node | [in/out] The Kokkos Node instance. If null, this class will create a Node with default parameters, at some time no later than during the first call to getNode(). |
Definition at line 138 of file Tpetra_SerialPlatform.hpp.
|
inlinevirtual |
Destructor (virtual for memory safety of derived classes).
Definition at line 149 of file Tpetra_SerialPlatform.hpp.
|
inline |
The Teuchos::Comm instance with which this object was created.
Definition at line 156 of file Tpetra_SerialPlatform.hpp.
|
inline |
The Kokkos Node instance with which this object was created.
Definition at line 161 of file Tpetra_SerialPlatform.hpp.
|
protected |
Teuchos::Comm object instantiated for the platform.
Definition at line 190 of file Tpetra_SerialPlatform.hpp.
|
protected |
Kokkos Node object instantiated for the platform.
Definition at line 192 of file Tpetra_SerialPlatform.hpp.