kokkos-utils 0.0.1
 
Loading...
Searching...
No Matches
Kokkos::utils::tests::callbacks Namespace Reference

Namespaces

namespace  impl
 

Classes

struct  EnqueuedEventTimerTest
 
struct  EnqueuedEventWithLaunchTimerTest
 
struct  EventTest
 
struct  EventTest< BeginDeepCopyEvent >
 
struct  EventTest< CreateProfileSectionEvent >
 
struct  EventTest< EndDeepCopyEvent >
 
struct  EventTest< EventType >
 
struct  EventTest< PopRegionEvent >
 
struct  EventTest< ProfileEvent >
 
struct  EventTest< PushRegionEvent >
 
class  ManagerTest
 
struct  MyWorkload
 
class  RecorderListenerSingleEventTypeTest
 
class  RecorderListenerTest
 
struct  RecordingMatcher
 Helper matcher that records in encountered all the events passed to it. More...
 
class  SequenceOfRegionTimerListenerTest
 
struct  TesterListener
 Listener that stores the events it receives. More...
 
class  TimerListenerTest
 
struct  TimerTest
 

Typedefs

using EventTestTypes = typename impl::EventTestTypes<Kokkos::utils::callbacks::EventTypeList>::type
 Useful type for defining a typed test suite over all types in Kokkos::utils::callbacks::EventTypeList.
 
using TimerTypes
 
using named_event_type_list_t
 List of event types that have a name.
 
using event_in_profile_section_recorder_t = RecorderListener<EventInProfileSectionMatcher<EventRegexMatcher>, EventTypeList>
 Listener to record events that occur in a profile section.
 
using fence_finder_t = RecorderListener<EventRegexMatcher, BeginFenceEvent>
 Listener to record fence events.
 
using parallel_for_timer_t = ParallelForTimerListener<EventRegexMatcher, execution_space>
 Listener to time parallel for regions whose name matches a regex.
 
using region_timer_t = RegionTimerListener<EventRegexMatcher>
 Listener to time regions whose name matches a regex.
 

Functions

 TEST_F (EnqueuedEventTimerTest, duration)
 
 TEST_F (EnqueuedEventWithLaunchTimerTest, duration)
 
 TYPED_TEST_SUITE (TimerTest, TimerTypes)
 
 TYPED_TEST (TimerTest, start_aborts_for_wrongly_enqueued_event)
 
 TEST (EventTest, BeginEvent)
 
 TEST (EventTest, EndEvent)
 
 TEST (EventTest, DataEvent)
 
 TEST (EventTest, ProfileSectionManipulationEvent)
 
 TEST (EventTest, NamedEvent)
 
 TEST (EventTest, name)
 
 TEST (EventTest, paired_event)
 
 TYPED_TEST_SUITE (EventTest, EventTestTypes)
 
 TYPED_TEST (EventTest, concept)
 
 TYPED_TEST (EventTest, comparison)
 
 TYPED_TEST (EventTest, traits)
 
 TYPED_TEST (EventTest, description)
 
 TYPED_TEST (EventTest, get_and_set_callback_from_and_in_eventset)
 
 TEST (ABeginParallelForEventWithName, CanDescribeItself)
 
 TEST (ContainsInOrderMatcher, CanDescribeItself)
 
 TEST (ContainsInOrderMatcher, Matches)
 
 TEST (Manager, singleton_traits)
 
 TEST_F (ManagerTest, dispatch_to_call_operators_of_single_listener)
 
 TEST_F (ManagerTest, dispatch_to_call_operators_of_multiple_listeners)
 
 TEST_F (ManagerTest, listener_from_lambda)
 
 TEST (EventRegexMatcher, traits)
 
 TEST (EventRegexMatcher, regex_matcher)
 
 TEST (EventNameMatcher, traits)
 
 TEST (EventNameMatcher, by_name)
 
 TEST (EventInProfileSectionMatcher, traits)
 
 TEST (EventInProfileSectionMatcher, in_profile_section_matcher)
 
 TEST (EventRegionMatcher, traits)
 
 TEST (EventRegionMatcher, within_region_matcher)
 
 TEST (EventRegionMatcher, boundary_region_matcher)
 
 TEST (AnyEventMatcher, traits)
 
 TEST (AnyEventMatcher, operator_parentheses)
 
 TEST (EventTypeMatcher, traits)
 
 TEST (EventTypeMatcher, operator_parentheses)
 
 TEST (EventBeginEndIdMatcher, traits)
 
 TEST (EventBeginEndIdMatcher, operator_parentheses)
 
 TEST (EventQueueMatcher, traits)
 
 TEST (EventQueueMatcher, operator_parentheses)
 
 TEST (EventIdMatcher, traits)
 
 TEST (EventIdMatcher, operator_parentheses)
 
 TEST (ConjunctionMatcher, traits)
 
 TEST (ConjunctionMatcher, everyone_agrees)
 
 TEST (ConjunctionMatcher, different_event_type_sets)
 
 TEST (ConjunctionMatcher, order_of_evaluation)
 
 TEST (RecorderListener, traits)
 
 TYPED_TEST_SUITE (RecorderListenerSingleEventTypeTest, EventTestTypes)
 
 TYPED_TEST (RecorderListenerSingleEventTypeTest, record)
 
 TEST_F (RecorderListenerTest, recorded_events)
 
 TEST_F (RecorderListenerTest, record)
 
 TEST (FenceFinder, traits)
 
 TEST_F_WITH_CB_MGR (FenceFinderTest, recorded_events)
 
 TEST_F (SequenceOfRegionTimerListenerTest, reset)
 
 TEST (ParallelForTimerListener, traits)
 
 TEST_F (TimerListenerTest, begin_not_matched_and_end_not_matched)
 
 TEST_F (TimerListenerTest, begin_matched_but_end_not_matched)
 
 TEST_F (TimerListenerTest, begin_and_end_matched)
 
 TEST_F (TimerListenerTest, begin_not_matched_if_device_id_does_not_match)
 
 TEST_F (TimerListenerTest, parallel_for)
 
 TEST_F (TimerListenerTest, with_launch)
 
 TEST (RegionTimerListener, traits)
 
 TEST_F (TimerListenerTest, region)
 
 TEST (RegionTimerListener, traits_when_used_with_enqueued_event_timer)
 

Typedef Documentation

◆ event_in_profile_section_recorder_t

◆ EventTestTypes

Useful type for defining a typed test suite over all types in Kokkos::utils::callbacks::EventTypeList.

Definition at line 21 of file Helpers.hpp.

◆ fence_finder_t

◆ named_event_type_list_t

Initial value:
Kokkos::Impl::type_list<
>
Allocate-data event associated with Kokkos::Tools::Experimental::EventSet::allocate_data.
Definition Events.hpp:113
Begin-fence event associated with Kokkos::Tools::Experimental::EventSet::begin_fence.
Definition Events.hpp:84
Begin-parallel-reduce event associated with Kokkos::Tools::Experimental::EventSet::begin_parallel_red...
Definition Events.hpp:48
Begin-parallel-scan event associated with Kokkos::Tools::Experimental::EventSet::begin_parallel_scan.
Definition Events.hpp:66
Create-profile-section event associated with Kokkos::Tools::Experimental::EventSet::create_profile_se...
Definition Events.hpp:144
Deallocate-data event associated with Kokkos::Tools::Experimental::EventSet::deallocate_data.
Definition Events.hpp:121
Profile event associated with Kokkos::Tools::Experimental::EventSet::profile_event.
Definition Events.hpp:191
Push-region event associated with Kokkos::Tools::Experimental::EventSet::push_region.
Definition Events.hpp:177

List of event types that have a name.

Definition at line 37 of file test_Matchers.cpp.

◆ parallel_for_timer_t

Listener to time parallel for regions whose name matches a regex.

Definition at line 36 of file test_TimerListener.cpp.

◆ region_timer_t

Listener to time regions whose name matches a regex.

Definition at line 178 of file test_TimerListener.cpp.

◆ TimerTypes

Initial value:
::testing::Types<
>
Timer for events that are enqueued on exec.
Timer for events that are enqueued on exec. This timer also measures the launch time.

Definition at line 100 of file test_EnqueuedEventTimer.cpp.

Function Documentation

◆ TEST() [1/39]

Kokkos::utils::tests::callbacks::TEST ( ABeginParallelForEventWithName ,
CanDescribeItself  )
Test
Check that Kokkos::utils::tests::callbacks::ABeginParallelForEventWithName can describe itself.

Definition at line 25 of file test_Helpers.cpp.

◆ TEST() [2/39]

Kokkos::utils::tests::callbacks::TEST ( AnyEventMatcher ,
operator_parentheses  )
Test
Check the behavior of Kokkos::utils::callbacks::AnyEventMatcher.

Definition at line 185 of file test_Matchers.cpp.

◆ TEST() [3/39]

Kokkos::utils::tests::callbacks::TEST ( AnyEventMatcher ,
traits  )
Test
Check traits of Kokkos::utils::callbacks::AnyEventMatcher.

Definition at line 177 of file test_Matchers.cpp.

◆ TEST() [4/39]

Kokkos::utils::tests::callbacks::TEST ( ConjunctionMatcher ,
different_event_type_sets  )
Test
Check that Kokkos::utils::callbacks::ConjunctionMatcher will only match for the subset of events that are common to all its sub-matchers.

Definition at line 334 of file test_Matchers.cpp.

◆ TEST() [5/39]

Kokkos::utils::tests::callbacks::TEST ( ConjunctionMatcher ,
everyone_agrees  )
Test
Check the behavior of Kokkos::utils::callbacks::ConjunctionMatcher.

Definition at line 308 of file test_Matchers.cpp.

◆ TEST() [6/39]

Kokkos::utils::tests::callbacks::TEST ( ConjunctionMatcher ,
order_of_evaluation  )
Test
Check that Kokkos::utils::callbacks::ConjunctionMatcher is short-circuiting, i.e. it will stop evaluating the sub-matchers as soon as one returns false.

The first matcher will be evaluated for all events.

The second matcher will be evaluated for all events for which the first matcher evaluated to true.

The third matcher will be evaluated for all events for which the first and the second matcher evaluated to true.

The forth matcher will be evaluated for all events for which the third matcher evaluated to true.

Definition at line 368 of file test_Matchers.cpp.

◆ TEST() [7/39]

Kokkos::utils::tests::callbacks::TEST ( ConjunctionMatcher ,
traits  )
Test
Check traits of Kokkos::utils::callbacks::ConjunctionMatcher.

Definition at line 295 of file test_Matchers.cpp.

◆ TEST() [8/39]

Kokkos::utils::tests::callbacks::TEST ( ContainsInOrderMatcher ,
CanDescribeItself  )
Test
Check that Kokkos::utils::tests::callbacks::ContainsInOrder can describe itself.

Definition at line 32 of file test_Helpers.cpp.

◆ TEST() [9/39]

Kokkos::utils::tests::callbacks::TEST ( ContainsInOrderMatcher ,
Matches  )
Test
Check that Kokkos::utils::tests::callbacks::ContainsInOrder matches as expected.

Definition at line 42 of file test_Helpers.cpp.

◆ TEST() [10/39]

Kokkos::utils::tests::callbacks::TEST ( EventBeginEndIdMatcher ,
operator_parentheses  )
Test
Check the behavior of Kokkos::utils::callbacks::EventBeginEndIdMatcher.

Definition at line 226 of file test_Matchers.cpp.

◆ TEST() [11/39]

Kokkos::utils::tests::callbacks::TEST ( EventBeginEndIdMatcher ,
traits  )
Test
Check traits of Kokkos::utils::callbacks::EventBeginEndIdMatcher.

Definition at line 215 of file test_Matchers.cpp.

◆ TEST() [12/39]

Kokkos::utils::tests::callbacks::TEST ( EventIdMatcher ,
operator_parentheses  )
Test
Check the behavior of Kokkos::utils::callbacks::EventIdMatcher.

Definition at line 286 of file test_Matchers.cpp.

◆ TEST() [13/39]

Kokkos::utils::tests::callbacks::TEST ( EventIdMatcher ,
traits  )
Test
Check traits of Kokkos::utils::callbacks::EventIdMatcher.

Definition at line 269 of file test_Matchers.cpp.

◆ TEST() [14/39]

Kokkos::utils::tests::callbacks::TEST ( EventInProfileSectionMatcher ,
in_profile_section_matcher  )
Test
Check the behavior of Kokkos::utils::callbacks::EventInProfileSectionMatcher.

Definition at line 99 of file test_Matchers.cpp.

◆ TEST() [15/39]

Kokkos::utils::tests::callbacks::TEST ( EventInProfileSectionMatcher ,
traits  )

◆ TEST() [16/39]

Kokkos::utils::tests::callbacks::TEST ( EventNameMatcher ,
by_name  )

◆ TEST() [17/39]

Kokkos::utils::tests::callbacks::TEST ( EventNameMatcher ,
traits  )
Test
Check traits of Kokkos::utils::callbacks::EventNameMatcher.

Definition at line 72 of file test_Matchers.cpp.

◆ TEST() [18/39]

Kokkos::utils::tests::callbacks::TEST ( EventQueueMatcher ,
operator_parentheses  )
Test
Check the behavior of Kokkos::utils::callbacks::EventQueueMatcher.

Definition at line 255 of file test_Matchers.cpp.

◆ TEST() [19/39]

Kokkos::utils::tests::callbacks::TEST ( EventQueueMatcher ,
traits  )
Test
Check traits of Kokkos::utils::callbacks::EventQueueMatcher.

Definition at line 238 of file test_Matchers.cpp.

◆ TEST() [20/39]

Kokkos::utils::tests::callbacks::TEST ( EventRegexMatcher ,
regex_matcher  )
Test
Check that Kokkos::utils::callbacks::EventRegexMatcher works as expected.

Definition at line 60 of file test_Matchers.cpp.

◆ TEST() [21/39]

Kokkos::utils::tests::callbacks::TEST ( EventRegexMatcher ,
traits  )
Test
Check traits of Kokkos::utils::callbacks::EventRegexMatcher.

Definition at line 50 of file test_Matchers.cpp.

◆ TEST() [22/39]

Kokkos::utils::tests::callbacks::TEST ( EventRegionMatcher ,
boundary_region_matcher  )
Test
Check the behavior of Kokkos::utils::callbacks::EventRegionMatcher when we want to match the opening and closing events.

Definition at line 153 of file test_Matchers.cpp.

◆ TEST() [23/39]

Kokkos::utils::tests::callbacks::TEST ( EventRegionMatcher ,
traits  )
Test
Check traits of Kokkos::utils::callbacks::EventRegionMatcher.

Definition at line 121 of file test_Matchers.cpp.

◆ TEST() [24/39]

Kokkos::utils::tests::callbacks::TEST ( EventRegionMatcher ,
within_region_matcher  )
Test
Check the behavior of Kokkos::utils::callbacks::EventRegionMatcher when we want to match events within a region.

Definition at line 131 of file test_Matchers.cpp.

◆ TEST() [25/39]

Kokkos::utils::tests::callbacks::TEST ( EventTest ,
BeginEvent  )
Test
Check that Kokkos::utils::callbacks::BeginEvent appropriately constrains the begin event types.

Definition at line 28 of file test_Events.cpp.

◆ TEST() [26/39]

Kokkos::utils::tests::callbacks::TEST ( EventTest ,
DataEvent  )
Test
Check that Kokkos::utils::callbacks::DataEvent appropriately constrains the data event types.

Definition at line 56 of file test_Events.cpp.

◆ TEST() [27/39]

Kokkos::utils::tests::callbacks::TEST ( EventTest ,
EndEvent  )
Test
Check that Kokkos::utils::callbacks::EndEvent appropriately constrains the end event types.

Definition at line 41 of file test_Events.cpp.

◆ TEST() [28/39]

Kokkos::utils::tests::callbacks::TEST ( EventTest ,
name  )
Test
Check Kokkos::utils::callbacks::get_name.

Definition at line 98 of file test_Events.cpp.

◆ TEST() [29/39]

Kokkos::utils::tests::callbacks::TEST ( EventTest ,
NamedEvent  )
Test
Check that Kokkos::utils::callbacks::NamedEvent appropriately constrains the event types that have a name field.

Definition at line 84 of file test_Events.cpp.

◆ TEST() [30/39]

Kokkos::utils::tests::callbacks::TEST ( EventTest ,
paired_event  )

◆ TEST() [31/39]

Kokkos::utils::tests::callbacks::TEST ( EventTest ,
ProfileSectionManipulationEvent  )
Test
Check that Kokkos::utils::callbacks::ProfileSectionManipulationEvent appropriately constrains the profile section manipulation event types.

Definition at line 68 of file test_Events.cpp.

◆ TEST() [32/39]

Kokkos::utils::tests::callbacks::TEST ( EventTypeMatcher ,
operator_parentheses  )
Test
Check the behavior of Kokkos::utils::callbacks::EventTypeMatcher.

Definition at line 206 of file test_Matchers.cpp.

◆ TEST() [33/39]

Kokkos::utils::tests::callbacks::TEST ( EventTypeMatcher ,
traits  )
Test
Check traits of Kokkos::utils::callbacks::EventTypeMatcher.

Definition at line 195 of file test_Matchers.cpp.

◆ TEST() [34/39]

Kokkos::utils::tests::callbacks::TEST ( FenceFinder ,
traits  )
Test
Check traits of fence_finder_t.

Check that fence_finder_t is a listener for Kokkos::utils::callbacks::BeginFenceEvent.

Definition at line 169 of file test_RecorderListener.cpp.

◆ TEST() [35/39]

Kokkos::utils::tests::callbacks::TEST ( Manager ,
singleton_traits  )
Test
Check properties of Kokkos::utils::callbacks::Manager being a singleton class.

Definition at line 35 of file test_Manager.cpp.

◆ TEST() [36/39]

Kokkos::utils::tests::callbacks::TEST ( ParallelForTimerListener ,
traits  )
Test
Check traits of ParallelForTimerListener.

Check that parallel_for_timer_t is a listener for BeginParallelForEvent and EndParallelForEvent.

Definition at line 44 of file test_TimerListener.cpp.

◆ TEST() [37/39]

Kokkos::utils::tests::callbacks::TEST ( RecorderListener ,
traits  )
Test
Check traits of Kokkos::utils::callbacks::RecorderListener.

Check that event_in_profile_section_recorder_t is a listener for any event.

Definition at line 42 of file test_RecorderListener.cpp.

◆ TEST() [38/39]

Kokkos::utils::tests::callbacks::TEST ( RegionTimerListener ,
traits  )
Test
Check traits of RegionTimerListener.

Check that region_timer_t is a listener for PushRegionEvent and PopRegionEvent.

Definition at line 181 of file test_TimerListener.cpp.

◆ TEST() [39/39]

Kokkos::utils::tests::callbacks::TEST ( RegionTimerListener ,
traits_when_used_with_enqueued_event_timer  )
Test
Check traits of RegionTimerListener when used with EnqueuedEventTimer.

Definition at line 227 of file test_TimerListener.cpp.

◆ TEST_F() [1/15]

Kokkos::utils::tests::callbacks::TEST_F ( EnqueuedEventTimerTest ,
duration  )
Test
Check the duration reported by Kokkos::utils::callbacks::EnqueuedEventTimer.

Check that the duration is greater than 0.

Definition at line 45 of file test_EnqueuedEventTimer.cpp.

◆ TEST_F() [2/15]

Kokkos::utils::tests::callbacks::TEST_F ( EnqueuedEventWithLaunchTimerTest ,
duration  )
Test
Check the enqueued event and launch durations reported by Kokkos::utils::callbacks::EnqueuedEventWithLaunchTimer.

Check that the duration is greater than 0. and smaller than the duration of the outer timer.

Check that the launch duration is greater than 0. and smaller than the duration of the outer timer.

Definition at line 60 of file test_EnqueuedEventTimer.cpp.

◆ TEST_F() [3/15]

Kokkos::utils::tests::callbacks::TEST_F ( ManagerTest ,
dispatch_to_call_operators_of_multiple_listeners  )
Test
Check the behavior of Kokkos::utils::callbacks::Manager with multiple listeners.

There is one begin parallel for event.

There is one end parallel for event and its id matches the one of the begin parallel for event.

Definition at line 96 of file test_Manager.cpp.

◆ TEST_F() [4/15]

Kokkos::utils::tests::callbacks::TEST_F ( ManagerTest ,
dispatch_to_call_operators_of_single_listener  )
Test
Check the behavior of Kokkos::utils::callbacks::Manager with a single listener.

There is one begin parallel for event.

There is one end parallel for event and its id matches the one of the begin parallel for event.

There are at least two begin fence events.

Definition at line 63 of file test_Manager.cpp.

◆ TEST_F() [5/15]

Kokkos::utils::tests::callbacks::TEST_F ( ManagerTest ,
listener_from_lambda  )
Test
Check the behavior of Kokkos::utils::callbacks::Manager with a listener constructed from a lambda.

Definition at line 124 of file test_Manager.cpp.

◆ TEST_F() [6/15]

Kokkos::utils::tests::callbacks::TEST_F ( RecorderListenerTest ,
record  )
Test
Check the behavior of Kokkos::utils::callbacks::RecorderListener<MatcherType, EventTypes...>::record.

Shorter version using ::testing::FieldsAre and ::testing::_ matchers.

Definition at line 142 of file test_RecorderListener.cpp.

◆ TEST_F() [7/15]

Kokkos::utils::tests::callbacks::TEST_F ( RecorderListenerTest ,
recorded_events  )
Test
Check the behavior of Kokkos::utils::callbacks::RecorderListener.

Check the recorded events.

Definition at line 77 of file test_RecorderListener.cpp.

◆ TEST_F() [8/15]

Kokkos::utils::tests::callbacks::TEST_F ( SequenceOfRegionTimerListenerTest ,
reset  )
Test
Check that SequenceOfRegionTimerListener can be used in a loop with calls to SequenceOfRegionTimerListener::reset.

Definition at line 34 of file test_SequenceOfRegionTimerListener.cpp.

◆ TEST_F() [9/15]

Kokkos::utils::tests::callbacks::TEST_F ( TimerListenerTest ,
begin_and_end_matched  )
Test
Check that TimerListener reports it is not connected but closed when both the begin event and the end event have been matched. Check that it can be reused after calling reset.

Definition at line 86 of file test_TimerListener.cpp.

◆ TEST_F() [10/15]

Kokkos::utils::tests::callbacks::TEST_F ( TimerListenerTest ,
begin_matched_but_end_not_matched  )
Test
Check that TimerListener reports it is connected but not closed when the begin event has been matched but the end event has not.

Definition at line 71 of file test_TimerListener.cpp.

◆ TEST_F() [11/15]

Kokkos::utils::tests::callbacks::TEST_F ( TimerListenerTest ,
begin_not_matched_and_end_not_matched  )
Test
Check that TimerListener reports it is not connected and not closed when neither the begin event nor the end event have been matched.

Definition at line 60 of file test_TimerListener.cpp.

◆ TEST_F() [12/15]

Kokkos::utils::tests::callbacks::TEST_F ( TimerListenerTest ,
begin_not_matched_if_device_id_does_not_match  )
Test
Check that TimerListener reports it is not connected if the device id of the event does not match the device id of the execution space that it stores.

Definition at line 112 of file test_TimerListener.cpp.

◆ TEST_F() [13/15]

Kokkos::utils::tests::callbacks::TEST_F ( TimerListenerTest ,
parallel_for  )
Test
Check the behavior of ParallelForTimerListener.

Definition at line 126 of file test_TimerListener.cpp.

◆ TEST_F() [14/15]

Kokkos::utils::tests::callbacks::TEST_F ( TimerListenerTest ,
region  )
Test
Check the behavior of RegionTimerListener.
Note
The assertion that the duration provided by the region timer is larger than the duration provided by the parallel for timer relies on the fact that in the test workload, the parallel for on the non-default execution space instance is followed by a fence and the parallel reduce on the default space instance reduces into a host space scalar, thus ensuring that this parallel reduce is blocking. In other words, for these reasons, we can use a region timer without execution space and without tool fences.

Definition at line 204 of file test_TimerListener.cpp.

◆ TEST_F() [15/15]

Kokkos::utils::tests::callbacks::TEST_F ( TimerListenerTest ,
with_launch  )
Test
Check the parallel for timer listener when used with EnqueuedEventWithLaunchTimer.

Definition at line 150 of file test_TimerListener.cpp.

◆ TEST_F_WITH_CB_MGR()

Kokkos::utils::tests::callbacks::TEST_F_WITH_CB_MGR ( FenceFinderTest ,
recorded_events  )
Test
Check the behavior of fence_finder_t.

Check the recorded events.

Definition at line 181 of file test_RecorderListener.cpp.

◆ TYPED_TEST() [1/7]

Kokkos::utils::tests::callbacks::TYPED_TEST ( EventTest ,
comparison  )
Test
Check that an event is equal to itself.

Definition at line 208 of file test_Events.cpp.

◆ TYPED_TEST() [2/7]

Kokkos::utils::tests::callbacks::TYPED_TEST ( EventTest ,
concept  )
Test
Check that Kokkos::utils::callbacks::Event appropriately constrains all the event types.

Definition at line 202 of file test_Events.cpp.

◆ TYPED_TEST() [3/7]

Kokkos::utils::tests::callbacks::TYPED_TEST ( EventTest ,
description  )
Test
Check that the event description is as expected.

Definition at line 222 of file test_Events.cpp.

◆ TYPED_TEST() [4/7]

Kokkos::utils::tests::callbacks::TYPED_TEST ( EventTest ,
get_and_set_callback_from_and_in_eventset  )
Test
Check that Kokkos::utils::callbacks::get_callback_from_eventset and Kokkos::utils::callbacks::get_callback_setter work as expected.

Type of the callback function pointer for the event type for which the test is instantiated.

Retrieve the eventset with the callback function pointers already set within Kokkos.

Retrieve from the eventset the callback function pointer for the event type for which the test is instantiated.

Create a new function object that can act as a callback for the event type for which the test is instantiated. Note that the function object is created as a generic lambda with a templated call operator. This way, the compiler can instantiate a call operator with the appropriate arguments for the event type for which the test is instantiated.

Set the new callback in Kokkos (thus replacing the context callback).

Check that the callback was set in Kokkos as expected.

Reset the context callback in Kokkos.

Definition at line 231 of file test_Events.cpp.

◆ TYPED_TEST() [5/7]

Kokkos::utils::tests::callbacks::TYPED_TEST ( EventTest ,
traits  )
Test
Check that each event type is an aggregate, default constructible, and movable.

Definition at line 214 of file test_Events.cpp.

◆ TYPED_TEST() [6/7]

Kokkos::utils::tests::callbacks::TYPED_TEST ( RecorderListenerSingleEventTypeTest ,
record  )
Test
Ensure that Kokkos::utils::callbacks::RecorderListener can be used with any event type from Kokkos::utils::callbacks::EventTypeList.

Definition at line 62 of file test_RecorderListener.cpp.

◆ TYPED_TEST() [7/7]

Kokkos::utils::tests::callbacks::TYPED_TEST ( TimerTest ,
start_aborts_for_wrongly_enqueued_event  )
Test
Check that the start method of Kokkos::utils::callbacks::EnqueuedEventTimer and Kokkos::utils::callbacks::EnqueuedEventWithLaunchTimer aborts when called on a wrongly enqueued event.

Definition at line 112 of file test_EnqueuedEventTimer.cpp.

◆ TYPED_TEST_SUITE() [1/3]

Kokkos::utils::tests::callbacks::TYPED_TEST_SUITE ( EventTest ,
EventTestTypes  )

◆ TYPED_TEST_SUITE() [2/3]

Kokkos::utils::tests::callbacks::TYPED_TEST_SUITE ( RecorderListenerSingleEventTypeTest ,
EventTestTypes  )

◆ TYPED_TEST_SUITE() [3/3]

Kokkos::utils::tests::callbacks::TYPED_TEST_SUITE ( TimerTest ,
TimerTypes  )