Xpetra Version of the Day
Loading...
Searching...
No Matches
Xpetra_DefaultPlatform.cpp
Go to the documentation of this file.
1// @HEADER
2// *****************************************************************************
3// Xpetra: A linear algebra interface package
4//
5// Copyright 2012 NTESS and the Xpetra contributors.
6// SPDX-License-Identifier: BSD-3-Clause
7// *****************************************************************************
8// @HEADER
9
10#include "Xpetra_ConfigDefs.hpp"
12
14
15namespace Xpetra {
16
18 XPETRA_MONITOR("DefaultPlatform::getDefaultPlatform");
19
20 if (!platform_.get()) {
21 using node_type = Tpetra::KokkosClassic::DefaultNode::DefaultNodeType;
22 Teuchos::RCP<node_type> node; // null
23#ifdef HAVE_MPI
25#else
27#endif
28 }
29 return *platform_;
30}
31
32} // namespace Xpetra
#define XPETRA_MONITOR(funcName)
static Teuchos::RCP< DefaultPlatformType > platform_
static DefaultPlatformType & getDefaultPlatform()
Return the default platform.
A implementation of the Platform class for MPI-based platforms.
A implementation of the Platform class for serial platforms.
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)