43#include "Teuchos_GlobalMPISession.hpp"
44#include "Kokkos_Core.hpp"
45#include "Tpetra_Details_checkLaunchBlocking.hpp"
54void finalizeKokkosIfNeeded() {
55 if(!Kokkos::is_finalized()) {
63 if (! Kokkos::is_initialized ()) {
64 std::vector<std::string>
args = Teuchos::GlobalMPISession::getArgv ();
65 int narg =
static_cast<int> (
args.size ());
68 std::vector<std::unique_ptr<char[]>>
args_;
69 for (
auto const&
x :
args) {
70 args_.emplace_back(
new char[
x.size() + 1]);
78 checkOldCudaLaunchBlocking();
80 std::atexit (finalizeKokkosIfNeeded);
84 Tpetra::Details::AddKokkosDeepCopyToTimeMonitor();
Declaration of Tpetra::Details::DeepCopyTeuchosTimerInjection, a class that uses Kokkos' profiling li...
Declaration of Tpetra::Details::initializeKokkos.
Struct that holds views of the contents of a CrsMatrix.
Implementation details of Tpetra.
void initializeKokkos()
Initialize Kokkos, using command-line arguments (if any) given to Teuchos::GlobalMPISession.
Namespace Tpetra contains the class and methods constituting the Tpetra library.