|
Tpetra Matrix/Vector Services Version of the Day
|
00001 #include "Tpetra_ConfigDefs.hpp" 00002 #include "Tpetra_DefaultPlatform.hpp" 00003 00004 Teuchos::RCP<Tpetra::DefaultPlatform::DefaultPlatformType> Tpetra::DefaultPlatform::platform_ = Teuchos::null; 00005 00006 namespace Tpetra { 00007 00008 DefaultPlatform::DefaultPlatformType &DefaultPlatform::getDefaultPlatform() { 00009 if (!platform_.get()) { 00010 #ifdef HAVE_TPETRA_MPI 00011 platform_ = Teuchos::rcp(new MpiPlatform<Kokkos::DefaultNode::DefaultNodeType>(Kokkos::DefaultNode::getDefaultNode())); 00012 #else 00013 platform_ = Teuchos::rcp(new SerialPlatform<Kokkos::DefaultNode::DefaultNodeType>(Kokkos::DefaultNode::getDefaultNode())); 00014 #endif 00015 } 00016 return *platform_; 00017 } 00018 00019 }
1.7.4