|
Tpetra Matrix/Vector Services
Version of the Day
|
Returns a default platform appropriate for the enviroment. More...
#include <Tpetra_DefaultPlatform.hpp>
Public Types | |
| typedef SerialPlatform < KokkosClassic::DefaultNode::DefaultNodeType > | DefaultPlatformType |
| Typedef indicating the default platform type specified at compile time. For a serial build, this will be SerialPlatform. Otherwise, it will be MpiPlatform. | |
Static Public Member Functions | |
| static DefaultPlatformType & | getDefaultPlatform () |
| Return the default platform. | |
Returns a default platform appropriate for the enviroment.
The DefaultPlatform mechanism is useful for easily accessing default Comm and Node types on a particular system.
If HAVE_MPI is defined, then an instance of MpiPlatform will be created. Otherwise, a SerialPlatform is returned.
Definition at line 62 of file Tpetra_DefaultPlatform.hpp.
| typedef SerialPlatform<KokkosClassic::DefaultNode::DefaultNodeType> Tpetra::DefaultPlatform::DefaultPlatformType |
Typedef indicating the default platform type specified at compile time. For a serial build, this will be SerialPlatform. Otherwise, it will be MpiPlatform.
Definition at line 68 of file Tpetra_DefaultPlatform.hpp.
Return the default platform.
Definition at line 51 of file Tpetra_DefaultPlatform.cpp.
1.7.6.1