kokkos-execution 0.0.1
Loading...
Searching...
No Matches
Kokkos::Execution::ExecutionSpaceContext< Exec > Struct Template Reference

Execution context using a Kokkos execution space under the hood. More...

#include <execution_space.hpp>

Public Types

using state_t = ExecutionSpaceImpl::State<Exec>

Public Member Functions

 ExecutionSpaceContext (Exec exec)
auto get_scheduler () const noexcept -> ExecutionSpaceImpl::Scheduler< Exec >

Public Attributes

state_t m_state

Detailed Description

template<Kokkos::ExecutionSpace Exec>
struct Kokkos::Execution::ExecutionSpaceContext< Exec >

Execution context using a Kokkos execution space under the hood.

For instance, if Exec is Kokkos::Cuda, the following holds true:

  1. The execution context will be the Cuda stream stored by the Kokkos::Cuda instance in Kokkos::Execution::ExecutionSpaceImpl::State.
  2. The execution resource is the GPU the stream is attached to.

Definition at line 127 of file execution_space.hpp.

Member Typedef Documentation

◆ state_t

template<Kokkos::ExecutionSpace Exec>
using Kokkos::Execution::ExecutionSpaceContext< Exec >::state_t = ExecutionSpaceImpl::State<Exec>

Definition at line 128 of file execution_space.hpp.

Constructor & Destructor Documentation

◆ ExecutionSpaceContext()

template<Kokkos::ExecutionSpace Exec>
Kokkos::Execution::ExecutionSpaceContext< Exec >::ExecutionSpaceContext ( Exec exec)
inlineexplicit

Definition at line 132 of file execution_space.hpp.

Member Function Documentation

◆ get_scheduler()

template<Kokkos::ExecutionSpace Exec>
auto Kokkos::Execution::ExecutionSpaceContext< Exec >::get_scheduler ( ) const->ExecutionSpaceImpl::Scheduler< Exec >
inlinenoexcept

Definition at line 136 of file execution_space.hpp.

Member Data Documentation

◆ m_state

template<Kokkos::ExecutionSpace Exec>
state_t Kokkos::Execution::ExecutionSpaceContext< Exec >::m_state

Definition at line 130 of file execution_space.hpp.


The documentation for this struct was generated from the following file: