|
Tpetra Matrix/Vector Services
Version of the Day
|
Implementation of the Platform concept for MPI-based platforms. More...
#include <Tpetra_SerialPlatform.hpp>
Inherits Describable.
Public Types | |
| typedef Node | NodeType |
| Kokkos Node type over which the platform is templated. | |
Public Member Functions | |
Constructor/Destructor Methods | |
| SerialPlatform (const RCP< Node > &node) | |
| virtual | ~SerialPlatform () |
| Destructor (virtual for memory safety of derived classes). | |
Class Creation and Accessor Methods | |
| RCP< const Comm< int > > | getComm () const |
The Teuchos::Comm instance with which this object was created. | |
| RCP< Node > | getNode () const |
| The Kokkos Node instance with which this object was created. | |
Protected Attributes | |
| RCP< const Teuchos::SerialComm < int > > | comm_ |
| Teuchos::Comm object instantiated for the platform. | |
| RCP< Node > | node_ |
| Kokkos Node object instantiated for the platform. | |
Implementation of the Platform concept for MPI-based platforms.
SerialPlatform specialization for Kokkos::DefaultNode::DefaultNodeType.
SerialPlatform is an implementation of Tpetra's Platform concept. Classes implementing Tpetra's Platform concept are templated on the Kokkos Node type. They have at least the following public interface:
template<class Node> class Platform { public: typedef Node NodeType; explicit Platform (const RCP<Node>& node); RCP<const Comm<int> > getComm() const; RCP<Node> getNode() const; };
SerialPlatform uses a "communicator" containing one process. It is available whether or not Trilinos was built with MPI.
Kokkos::DefaultNode::DefaultNodeType is a typedef, and may have a different type, depending on Trilinos' build options. For example, it may be Kokkos::SerialNode if Trilinos was built without a threading library, or Kokkos::TPINode if Trilinos was built with Pthreads.Definition at line 75 of file Tpetra_SerialPlatform.hpp.
| Tpetra::SerialPlatform< Node >::NodeType |
Kokkos Node type over which the platform is templated.
Definition at line 79 of file Tpetra_SerialPlatform.hpp.
| Tpetra::SerialPlatform< Node >::SerialPlatform | ( | const RCP< Node > & | node | ) | [inline, explicit] |
Constructor that accepts a Kokkos Node.
| node | [in/out] The Kokkos Node instance. |
Definition at line 88 of file Tpetra_SerialPlatform.hpp.
| virtual Tpetra::SerialPlatform< Node >::~SerialPlatform | ( | ) | [inline, virtual] |
Destructor (virtual for memory safety of derived classes).
Definition at line 94 of file Tpetra_SerialPlatform.hpp.
| RCP<const Comm<int> > Tpetra::SerialPlatform< Node >::getComm | ( | ) | const [inline] |
The Teuchos::Comm instance with which this object was created.
Definition at line 102 of file Tpetra_SerialPlatform.hpp.
| RCP<Node> Tpetra::SerialPlatform< Node >::getNode | ( | ) | const [inline] |
The Kokkos Node instance with which this object was created.
Definition at line 107 of file Tpetra_SerialPlatform.hpp.
RCP<const Teuchos::SerialComm<int> > Tpetra::SerialPlatform< Node >::comm_ [protected] |
Teuchos::Comm object instantiated for the platform.
Definition at line 115 of file Tpetra_SerialPlatform.hpp.
RCP<Node> Tpetra::SerialPlatform< Node >::node_ [protected] |
Kokkos Node object instantiated for the platform.
Definition at line 118 of file Tpetra_SerialPlatform.hpp.
1.7.6.1