/usr/include/trilinos/Tpetra_DefaultPlatform.cpp is in libtrilinos-dev 10.4.0.dfsg-1ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | #include "Tpetra_ConfigDefs.hpp"
#include "Tpetra_DefaultPlatform.hpp"
Teuchos::RCP<Tpetra::DefaultPlatform::DefaultPlatformType> Tpetra::DefaultPlatform::platform_ = Teuchos::null;
namespace Tpetra {
DefaultPlatform::DefaultPlatformType &DefaultPlatform::getDefaultPlatform() {
if (!platform_.get()) {
#ifdef HAVE_TPETRA_MPI
platform_ = Teuchos::rcp(new MpiPlatform<Kokkos::DefaultNode::DefaultNodeType>(Kokkos::DefaultNode::getDefaultNode()));
#else
platform_ = Teuchos::rcp(new SerialPlatform<Kokkos::DefaultNode::DefaultNodeType>(Kokkos::DefaultNode::getDefaultNode()));
#endif
}
return *platform_;
}
}
|