Tpetra parallel linear algebra
Version of the Day
|
Provides reusable Kokkos execution space instances. More...
#include <Tpetra_Details_ExecutionSpaces.hpp>
Public Member Functions | |
template<Priority priority = Priority::medium> | |
rcp_type | space_instance (int i=0) |
Retrieve a strong Teuchos::RCP<const ExecSpace> to instance i More... | |
~InstanceLifetimeManager () | |
Issue a warning if any Tpetra-managed execution space instances survive to the end of static lifetime. More... | |
Provides reusable Kokkos execution space instances.
ExecSpace | the type of Kokkos execution space to manage |
Holds a weak RCP to exec space instances, but provides strong RCPs to callers. Callers in Tpetra can use this to quickly get an execution space instance on-demand.
When all strong RCP holders go away, the referenced instance will also go away. This prevents the spaces from living longer than Kokkos.
Definition at line 216 of file Tpetra_Details_ExecutionSpaces.hpp.
|
inline |
Issue a warning if any Tpetra-managed execution space instances survive to the end of static lifetime.
Definition at line 281 of file Tpetra_Details_ExecutionSpaces.hpp.
|
inline |
Retrieve a strong Teuchos::RCP<const ExecSpace>
to instance i
priority | the Spaces::Details::Priority of the provided instance |
i | Which execution space instance to provide (default = Tpetra::Details::Spaces::Priority::medium) |
Definition at line 228 of file Tpetra_Details_ExecutionSpaces.hpp.