42 #ifndef TPETRA_MPIPLATFORM_HPP
43 #define TPETRA_MPIPLATFORM_HPP
45 #include <Teuchos_DefaultMpiComm.hpp>
46 #include <Teuchos_Describable.hpp>
47 #include <Tpetra_ConfigDefs.hpp>
48 #include <Kokkos_DefaultNode.hpp>
97 comm_ (Teuchos::createMpiComm<int> (Teuchos::opaqueWrapper<MPI_Comm> (MPI_COMM_WORLD))),
98 node_ (node.is_null () ? Kokkos::Details::
getNode<Node> () : node)
120 const RCP<
const Teuchos::OpaqueWrapper<MPI_Comm> > &rawMpiComm)
121 :
comm_ (Teuchos::createMpiComm<int> (rawMpiComm)),
122 node_ (node.is_null () ? Kokkos::Details::
getNode<Node> () : node)
136 :
comm_ (Teuchos::createMpiComm<int> (Teuchos::opaqueWrapper<MPI_Comm> (rawMpiComm))),
137 node_ (node.is_null () ? Kokkos::Details::
getNode<Node> () : node)
188 public Teuchos::Describable {
194 typedef Kokkos::DefaultNode::DefaultNodeType
NodeType;
207 comm_ (Teuchos::createMpiComm<int> (Teuchos::opaqueWrapper<MPI_Comm> (MPI_COMM_WORLD))),
208 node_ (Kokkos::DefaultNode::getDefaultNode ())
225 explicit MpiPlatform (
const RCP<Kokkos::DefaultNode::DefaultNodeType> &node) :
226 comm_ (Teuchos::createMpiComm<int> (Teuchos::opaqueWrapper<MPI_Comm> (MPI_COMM_WORLD))),
227 node_ (node.is_null() ? Kokkos::DefaultNode::getDefaultNode() : node)
247 MpiPlatform (
const RCP<Kokkos::DefaultNode::DefaultNodeType> &node,
248 const RCP<
const Teuchos::OpaqueWrapper<MPI_Comm> > &rawMpiComm)
249 :
comm_ (Teuchos::createMpiComm<int> (rawMpiComm)),
250 node_ (node.is_null() ? Kokkos::DefaultNode::getDefaultNode() : node)
262 MpiPlatform (
const RCP<Kokkos::DefaultNode::DefaultNodeType> &node,
264 :
comm_ (Teuchos::createMpiComm<int> (Teuchos::opaqueWrapper<MPI_Comm> (rawMpiComm))),
265 node_ (node.is_null() ? Kokkos::DefaultNode::getDefaultNode() : node)
281 RCP<Kokkos::DefaultNode::DefaultNodeType>
getNode()
const {
298 RCP<Kokkos::DefaultNode::DefaultNodeType>
node_;
303 #endif // TPETRA_MPIPLATFORM_HPP