1#ifndef TPETRA_DETAILS_EXEUTIONSPACESSLOT_HPP
2#define TPETRA_DETAILS_EXEUTIONSPACESSLOT_HPP
8#include "Teuchos_RCP.hpp"
11#include <Kokkos_Core.hpp>
22template <
typename ExecSpace>
class Slot {
33 instances_[
i] = Spaces::space_instance<execution_space>(
49 template <Spaces::Priority priority = Spaces::Priority::medium>
51 return instances_[
static_cast<int>(
priority)];
66 Teuchos::RCP<const execution_space>
69 case Spaces::Priority::high:
71 case Spaces::Priority::medium:
73 case Spaces::Priority::low:
76 throw std::runtime_error(
"unexpected Tpetra Space priority");
85 Teuchos::RCP<const execution_space>
86 instances_[
static_cast<int>(Spaces::Priority::NUM_LEVELS)];
Declaration of Tpetra::Details::Behavior, a class that describes Tpetra's behavior.
Priority
Priority interface for Tpetra's managed execution spaces.
Struct that holds views of the contents of a CrsMatrix.
Lazily acquires and stores Kokkos Execution Spaces.
Slot()
Default constructor that creates instances for each possible space priority level.
Teuchos::RCP< const execution_space > space_instance(const Spaces::Priority &priority) const
Get a specific execution space instance based on the given priority level.
Teuchos::RCP< const execution_space > space_instance() const
Get a specific execution space instance based on the given priority level.
Implementation details of Tpetra.
Namespace Tpetra contains the class and methods constituting the Tpetra library.