kokkos-execution 0.0.1
Loading...
Searching...
No Matches
Examples::Graph::Hydra< Exec > Struct Template Reference
Inheritance diagram for Examples::Graph::Hydra< Exec >:
Kokkos::utils::tests::scoped::ExecutionSpace< Exec >

Public Types

using base_t = Kokkos::utils::tests::scoped::ExecutionSpace<Exec>
using view_t = Kokkos::View<char[pattern.size() + 1], Exec>
 One extra slot, zero-initialized, so the result is always null-terminated.

Public Member Functions

 Hydra ()
void check () const
void run () const
Public Member Functions inherited from Kokkos::utils::tests::scoped::ExecutionSpace< Exec >
 ExecutionSpace ()
ExecutionSpace & operator= (const ExecutionSpace &)=delete
 ExecutionSpace (const ExecutionSpace &)=delete

Static Public Attributes

static constexpr std::string_view pattern = "SORRY HERACLES"
 One branch (head) per character. To grow another head, extend the string.

Protected Attributes

view_t data

Additional Inherited Members

Public Attributes inherited from Kokkos::utils::tests::scoped::ExecutionSpace< Exec >
Exec exec

Detailed Description

template<Kokkos::ExecutionSpace Exec>
struct Examples::Graph::Hydra< Exec >
Examples
examples/graph/example_hydra.cpp.

Definition at line 32 of file example_hydra.cpp.

Member Typedef Documentation

◆ base_t

template<Kokkos::ExecutionSpace Exec>
using Examples::Graph::Hydra< Exec >::base_t = Kokkos::utils::tests::scoped::ExecutionSpace<Exec>
Examples
examples/graph/example_hydra.cpp.

Definition at line 34 of file example_hydra.cpp.

◆ view_t

template<Kokkos::ExecutionSpace Exec>
using Examples::Graph::Hydra< Exec >::view_t = Kokkos::View<char[pattern.size() + 1], Exec>

One extra slot, zero-initialized, so the result is always null-terminated.

Examples
examples/graph/example_hydra.cpp.

Definition at line 40 of file example_hydra.cpp.

Constructor & Destructor Documentation

◆ Hydra()

template<Kokkos::ExecutionSpace Exec>
Examples::Graph::Hydra< Exec >::Hydra ( )
inline

Member Function Documentation

◆ check()

template<Kokkos::ExecutionSpace Exec>
void Examples::Graph::Hydra< Exec >::check ( ) const
inline
Examples
examples/graph/example_hydra.cpp.

Definition at line 48 of file example_hydra.cpp.

References data, and pattern.

◆ run()

template<Kokkos::ExecutionSpace Exec>
void Examples::Graph::Hydra< Exec >::run ( ) const
inline

Wait for data to be ready, as the underlying Kokkos::Experimental::Graph will be submitted on the default execution space instance.

Examples
examples/graph/example_hydra.cpp.

Definition at line 69 of file example_hydra.cpp.

References check(), Kokkos::utils::tests::scoped::ExecutionSpace< Exec >::exec, Kokkos::Execution::GraphContext< Exec >::get_scheduler(), and pattern.

Member Data Documentation

◆ data

template<Kokkos::ExecutionSpace Exec>
view_t Examples::Graph::Hydra< Exec >::data
protected
Examples
examples/graph/example_hydra.cpp.

Definition at line 87 of file example_hydra.cpp.

◆ pattern

template<Kokkos::ExecutionSpace Exec>
std::string_view Examples::Graph::Hydra< Exec >::pattern = "SORRY HERACLES"
staticconstexpr

One branch (head) per character. To grow another head, extend the string.

Examples
examples/graph/example_hydra.cpp.

Definition at line 37 of file example_hydra.cpp.


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