Xpetra
Version of the Day
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
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
"
15
#include "
Xpetra_SerialPlatform.hpp
"
16
#ifdef HAVE_MPI
17
#include "
Xpetra_MpiPlatform.hpp
"
18
#endif
19
20
#include "
Xpetra_ConfigDefs.hpp
"
21
22
namespace
Xpetra {
23
32
class
DefaultPlatform
{
33
public
:
35
#ifdef HAVE_MPI
36
typedef
MpiPlatform<Tpetra::KokkosClassic::DefaultNode::DefaultNodeType>
DefaultPlatformType
;
37
#else
38
typedef
SerialPlatform<Tpetra::KokkosClassic::DefaultNode::DefaultNodeType>
DefaultPlatformType
;
39
#endif
40
43
static
DefaultPlatformType
&
getDefaultPlatform
();
44
45
private
:
46
static
Teuchos::RCP<DefaultPlatformType>
platform_
;
47
};
48
49
}
// namespace Xpetra
50
51
#endif // XPETRA_DEFAULTPLATFORM_HPP
Xpetra::MpiPlatform
A implementation of the Platform class for MPI-based platforms.
Definition:
Xpetra_MpiPlatform.hpp:28
Xpetra::SerialPlatform
A implementation of the Platform class for serial platforms.
Definition:
Xpetra_SerialPlatform.hpp:23
Xpetra_MpiPlatform.hpp
Xpetra_SerialPlatform.hpp
Xpetra_ConfigDefs.hpp
Xpetra::DefaultPlatform::getDefaultPlatform
static DefaultPlatformType & getDefaultPlatform()
Return the default platform.
Definition:
Xpetra_DefaultPlatform.cpp:17
Xpetra::DefaultPlatform::DefaultPlatformType
SerialPlatform< Tpetra::KokkosClassic::DefaultNode::DefaultNodeType > DefaultPlatformType
Typedef indicating the default platform type specified at compile time. For a serial build...
Definition:
Xpetra_DefaultPlatform.hpp:38
Xpetra::DefaultPlatform::platform_
static Teuchos::RCP< DefaultPlatformType > platform_
Definition:
Xpetra_DefaultPlatform.hpp:46
Xpetra::DefaultPlatform
Returns a default platform appropriate for the enviroment.
Definition:
Xpetra_DefaultPlatform.hpp:32
src
Platform
Xpetra_DefaultPlatform.hpp
Generated on Fri Nov 22 2024 09:23:16 for Xpetra by
1.8.5