Xpetra  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Xpetra_DefaultPlatform.hpp
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 #ifndef XPETRA_DEFAULTPLATFORM_HPP
11 #define XPETRA_DEFAULTPLATFORM_HPP
12 
13 #include <Tpetra_KokkosCompat_DefaultNode.hpp>
14 #include "Xpetra_ConfigDefs.hpp"
16 #ifdef HAVE_MPI
17 #include "Xpetra_MpiPlatform.hpp"
18 #endif
19 
20 #include "Xpetra_ConfigDefs.hpp"
21 
22 namespace Xpetra {
23 
33  public:
35 #ifdef HAVE_MPI
37 #else
39 #endif
40 
44 
45  private:
46  static Teuchos::RCP<DefaultPlatformType> platform_;
47 };
48 
49 } // namespace Xpetra
50 
51 #endif // XPETRA_DEFAULTPLATFORM_HPP
A implementation of the Platform class for MPI-based platforms.
A implementation of the Platform class for serial platforms.
static DefaultPlatformType & getDefaultPlatform()
Return the default platform.
SerialPlatform< Tpetra::KokkosClassic::DefaultNode::DefaultNodeType > DefaultPlatformType
Typedef indicating the default platform type specified at compile time. For a serial build...
static Teuchos::RCP< DefaultPlatformType > platform_
Returns a default platform appropriate for the enviroment.