kokkos-utils 0.0.1
 
Loading...
Searching...
No Matches
Kokkos::utils::callbacks::EventInProfileSectionMatcher< MatcherType > Struct Template Reference

Matcher to select events that occur within a profile section. More...

#include <EventInProfileSectionMatcher.hpp>

Public Member Functions

bool operator() (const CreateProfileSectionEvent &event)
 
bool operator() (const StartProfileSectionEvent &event)
 
bool operator() (const StopProfileSectionEvent &event)
 
template<Event EventType>
bool operator() (const EventType &) const
 

Public Attributes

MatcherType matcher {}
 
uint32_t section_id = invalid_section_id
 
bool recording = false
 

Static Public Attributes

static constexpr uint32_t invalid_section_id = Kokkos::Experimental::finite_max_v<uint32_t>
 

Detailed Description

template<typename MatcherType>
requires MatcherFor<MatcherType, CreateProfileSectionEvent>
struct Kokkos::utils::callbacks::EventInProfileSectionMatcher< MatcherType >

Matcher to select events that occur within a profile section.

The profile section is selected by matcher.

Definition at line 18 of file EventInProfileSectionMatcher.hpp.

Member Function Documentation

◆ operator()() [1/4]

template<typename MatcherType>
bool Kokkos::utils::callbacks::EventInProfileSectionMatcher< MatcherType >::operator() ( const CreateProfileSectionEvent & event)
inline

Definition at line 22 of file EventInProfileSectionMatcher.hpp.

◆ operator()() [2/4]

template<typename MatcherType>
template<Event EventType>
bool Kokkos::utils::callbacks::EventInProfileSectionMatcher< MatcherType >::operator() ( const EventType & ) const
inline

Definition at line 45 of file EventInProfileSectionMatcher.hpp.

◆ operator()() [3/4]

template<typename MatcherType>
bool Kokkos::utils::callbacks::EventInProfileSectionMatcher< MatcherType >::operator() ( const StartProfileSectionEvent & event)
inline

Definition at line 32 of file EventInProfileSectionMatcher.hpp.

◆ operator()() [4/4]

template<typename MatcherType>
bool Kokkos::utils::callbacks::EventInProfileSectionMatcher< MatcherType >::operator() ( const StopProfileSectionEvent & event)
inline

Definition at line 38 of file EventInProfileSectionMatcher.hpp.

Member Data Documentation

◆ invalid_section_id

template<typename MatcherType>
uint32_t Kokkos::utils::callbacks::EventInProfileSectionMatcher< MatcherType >::invalid_section_id = Kokkos::Experimental::finite_max_v<uint32_t>
staticconstexpr

Definition at line 20 of file EventInProfileSectionMatcher.hpp.

◆ matcher

template<typename MatcherType>
MatcherType Kokkos::utils::callbacks::EventInProfileSectionMatcher< MatcherType >::matcher {}

Definition at line 49 of file EventInProfileSectionMatcher.hpp.

◆ recording

template<typename MatcherType>
bool Kokkos::utils::callbacks::EventInProfileSectionMatcher< MatcherType >::recording = false

Definition at line 51 of file EventInProfileSectionMatcher.hpp.

◆ section_id

template<typename MatcherType>
uint32_t Kokkos::utils::callbacks::EventInProfileSectionMatcher< MatcherType >::section_id = invalid_section_id

Definition at line 50 of file EventInProfileSectionMatcher.hpp.


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