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) | |
using Kokkos::utils::tests::callbacks::event_in_profile_section_recorder_t = RecorderListener<EventInProfileSectionMatcher<EventRegexMatcher>, EventTypeList> |
Listener to record events that occur in a profile section.
Definition at line 34 of file test_RecorderListener.cpp.
using Kokkos::utils::tests::callbacks::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.
Definition at line 21 of file Helpers.hpp.
using Kokkos::utils::tests::callbacks::fence_finder_t = RecorderListener<EventRegexMatcher, BeginFenceEvent> |
Listener to record fence events.
Definition at line 166 of file test_RecorderListener.cpp.
List of event types that have a name.
Definition at line 37 of file test_Matchers.cpp.
using Kokkos::utils::tests::callbacks::parallel_for_timer_t = ParallelForTimerListener<EventRegexMatcher, execution_space> |
Listener to time parallel for regions whose name matches a regex.
Definition at line 36 of file test_TimerListener.cpp.
Listener to time regions whose name matches a regex.
Definition at line 178 of file test_TimerListener.cpp.
Definition at line 100 of file test_EnqueuedEventTimer.cpp.
Kokkos::utils::tests::callbacks::TEST | ( | ABeginParallelForEventWithName | , |
CanDescribeItself | ) |
Definition at line 25 of file test_Helpers.cpp.
Kokkos::utils::tests::callbacks::TEST | ( | AnyEventMatcher | , |
operator_parentheses | ) |
Definition at line 185 of file test_Matchers.cpp.
Kokkos::utils::tests::callbacks::TEST | ( | AnyEventMatcher | , |
traits | ) |
Definition at line 177 of file test_Matchers.cpp.
Kokkos::utils::tests::callbacks::TEST | ( | ConjunctionMatcher | , |
different_event_type_sets | ) |
Definition at line 334 of file test_Matchers.cpp.
Kokkos::utils::tests::callbacks::TEST | ( | ConjunctionMatcher | , |
everyone_agrees | ) |
Definition at line 308 of file test_Matchers.cpp.
Kokkos::utils::tests::callbacks::TEST | ( | ConjunctionMatcher | , |
order_of_evaluation | ) |
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.
Kokkos::utils::tests::callbacks::TEST | ( | ConjunctionMatcher | , |
traits | ) |
Definition at line 295 of file test_Matchers.cpp.
Kokkos::utils::tests::callbacks::TEST | ( | ContainsInOrderMatcher | , |
CanDescribeItself | ) |
Definition at line 32 of file test_Helpers.cpp.
Kokkos::utils::tests::callbacks::TEST | ( | ContainsInOrderMatcher | , |
Matches | ) |
Definition at line 42 of file test_Helpers.cpp.
Kokkos::utils::tests::callbacks::TEST | ( | EventBeginEndIdMatcher | , |
operator_parentheses | ) |
Definition at line 226 of file test_Matchers.cpp.
Kokkos::utils::tests::callbacks::TEST | ( | EventBeginEndIdMatcher | , |
traits | ) |
Definition at line 215 of file test_Matchers.cpp.
Kokkos::utils::tests::callbacks::TEST | ( | EventIdMatcher | , |
operator_parentheses | ) |
Definition at line 286 of file test_Matchers.cpp.
Kokkos::utils::tests::callbacks::TEST | ( | EventIdMatcher | , |
traits | ) |
Definition at line 269 of file test_Matchers.cpp.
Kokkos::utils::tests::callbacks::TEST | ( | EventInProfileSectionMatcher | , |
in_profile_section_matcher | ) |
Definition at line 99 of file test_Matchers.cpp.
Kokkos::utils::tests::callbacks::TEST | ( | EventInProfileSectionMatcher | , |
traits | ) |
Definition at line 89 of file test_Matchers.cpp.
Kokkos::utils::tests::callbacks::TEST | ( | EventNameMatcher | , |
by_name | ) |
Definition at line 80 of file test_Matchers.cpp.
Kokkos::utils::tests::callbacks::TEST | ( | EventNameMatcher | , |
traits | ) |
Definition at line 72 of file test_Matchers.cpp.
Kokkos::utils::tests::callbacks::TEST | ( | EventQueueMatcher | , |
operator_parentheses | ) |
Definition at line 255 of file test_Matchers.cpp.
Kokkos::utils::tests::callbacks::TEST | ( | EventQueueMatcher | , |
traits | ) |
Definition at line 238 of file test_Matchers.cpp.
Kokkos::utils::tests::callbacks::TEST | ( | EventRegexMatcher | , |
regex_matcher | ) |
Definition at line 60 of file test_Matchers.cpp.
Kokkos::utils::tests::callbacks::TEST | ( | EventRegexMatcher | , |
traits | ) |
Definition at line 50 of file test_Matchers.cpp.
Kokkos::utils::tests::callbacks::TEST | ( | EventRegionMatcher | , |
boundary_region_matcher | ) |
Definition at line 153 of file test_Matchers.cpp.
Kokkos::utils::tests::callbacks::TEST | ( | EventRegionMatcher | , |
traits | ) |
Definition at line 121 of file test_Matchers.cpp.
Kokkos::utils::tests::callbacks::TEST | ( | EventRegionMatcher | , |
within_region_matcher | ) |
Definition at line 131 of file test_Matchers.cpp.
Kokkos::utils::tests::callbacks::TEST | ( | EventTest | , |
BeginEvent | ) |
Definition at line 28 of file test_Events.cpp.
Kokkos::utils::tests::callbacks::TEST | ( | EventTest | , |
DataEvent | ) |
Definition at line 56 of file test_Events.cpp.
Kokkos::utils::tests::callbacks::TEST | ( | EventTest | , |
EndEvent | ) |
Definition at line 41 of file test_Events.cpp.
Kokkos::utils::tests::callbacks::TEST | ( | EventTest | , |
name | ) |
Definition at line 98 of file test_Events.cpp.
Kokkos::utils::tests::callbacks::TEST | ( | EventTest | , |
NamedEvent | ) |
name
field. Definition at line 84 of file test_Events.cpp.
Kokkos::utils::tests::callbacks::TEST | ( | EventTest | , |
paired_event | ) |
Definition at line 110 of file test_Events.cpp.
Kokkos::utils::tests::callbacks::TEST | ( | EventTest | , |
ProfileSectionManipulationEvent | ) |
Definition at line 68 of file test_Events.cpp.
Kokkos::utils::tests::callbacks::TEST | ( | EventTypeMatcher | , |
operator_parentheses | ) |
Definition at line 206 of file test_Matchers.cpp.
Kokkos::utils::tests::callbacks::TEST | ( | EventTypeMatcher | , |
traits | ) |
Definition at line 195 of file test_Matchers.cpp.
Kokkos::utils::tests::callbacks::TEST | ( | FenceFinder | , |
traits | ) |
Check that fence_finder_t is a listener for Kokkos::utils::callbacks::BeginFenceEvent.
Definition at line 169 of file test_RecorderListener.cpp.
Kokkos::utils::tests::callbacks::TEST | ( | Manager | , |
singleton_traits | ) |
Definition at line 35 of file test_Manager.cpp.
Kokkos::utils::tests::callbacks::TEST | ( | ParallelForTimerListener | , |
traits | ) |
Check that parallel_for_timer_t is a listener for BeginParallelForEvent and EndParallelForEvent.
Definition at line 44 of file test_TimerListener.cpp.
Kokkos::utils::tests::callbacks::TEST | ( | RecorderListener | , |
traits | ) |
Check that event_in_profile_section_recorder_t is a listener for any event.
Definition at line 42 of file test_RecorderListener.cpp.
Kokkos::utils::tests::callbacks::TEST | ( | RegionTimerListener | , |
traits | ) |
Check that region_timer_t is a listener for PushRegionEvent and PopRegionEvent.
Definition at line 181 of file test_TimerListener.cpp.
Kokkos::utils::tests::callbacks::TEST | ( | RegionTimerListener | , |
traits_when_used_with_enqueued_event_timer | ) |
Definition at line 227 of file test_TimerListener.cpp.
Kokkos::utils::tests::callbacks::TEST_F | ( | EnqueuedEventTimerTest | , |
duration | ) |
Check that the duration is greater than 0.
Definition at line 45 of file test_EnqueuedEventTimer.cpp.
Kokkos::utils::tests::callbacks::TEST_F | ( | EnqueuedEventWithLaunchTimerTest | , |
duration | ) |
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.
Kokkos::utils::tests::callbacks::TEST_F | ( | ManagerTest | , |
dispatch_to_call_operators_of_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.
Kokkos::utils::tests::callbacks::TEST_F | ( | ManagerTest | , |
dispatch_to_call_operators_of_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.
Kokkos::utils::tests::callbacks::TEST_F | ( | ManagerTest | , |
listener_from_lambda | ) |
Definition at line 124 of file test_Manager.cpp.
Kokkos::utils::tests::callbacks::TEST_F | ( | RecorderListenerTest | , |
record | ) |
Shorter version using ::testing::FieldsAre
and ::testing::_
matchers.
Definition at line 142 of file test_RecorderListener.cpp.
Kokkos::utils::tests::callbacks::TEST_F | ( | RecorderListenerTest | , |
recorded_events | ) |
Check the recorded events.
Definition at line 77 of file test_RecorderListener.cpp.
Kokkos::utils::tests::callbacks::TEST_F | ( | SequenceOfRegionTimerListenerTest | , |
reset | ) |
Definition at line 34 of file test_SequenceOfRegionTimerListener.cpp.
Kokkos::utils::tests::callbacks::TEST_F | ( | TimerListenerTest | , |
begin_and_end_matched | ) |
reset
. Definition at line 86 of file test_TimerListener.cpp.
Kokkos::utils::tests::callbacks::TEST_F | ( | TimerListenerTest | , |
begin_matched_but_end_not_matched | ) |
Definition at line 71 of file test_TimerListener.cpp.
Kokkos::utils::tests::callbacks::TEST_F | ( | TimerListenerTest | , |
begin_not_matched_and_end_not_matched | ) |
Definition at line 60 of file test_TimerListener.cpp.
Kokkos::utils::tests::callbacks::TEST_F | ( | TimerListenerTest | , |
begin_not_matched_if_device_id_does_not_match | ) |
Definition at line 112 of file test_TimerListener.cpp.
Kokkos::utils::tests::callbacks::TEST_F | ( | TimerListenerTest | , |
parallel_for | ) |
Definition at line 126 of file test_TimerListener.cpp.
Kokkos::utils::tests::callbacks::TEST_F | ( | TimerListenerTest | , |
region | ) |
Definition at line 204 of file test_TimerListener.cpp.
Kokkos::utils::tests::callbacks::TEST_F | ( | TimerListenerTest | , |
with_launch | ) |
Definition at line 150 of file test_TimerListener.cpp.
Kokkos::utils::tests::callbacks::TEST_F_WITH_CB_MGR | ( | FenceFinderTest | , |
recorded_events | ) |
Check the recorded events.
Definition at line 181 of file test_RecorderListener.cpp.
Kokkos::utils::tests::callbacks::TYPED_TEST | ( | EventTest | , |
comparison | ) |
Definition at line 208 of file test_Events.cpp.
Kokkos::utils::tests::callbacks::TYPED_TEST | ( | EventTest | , |
concept | ) |
Definition at line 202 of file test_Events.cpp.
Kokkos::utils::tests::callbacks::TYPED_TEST | ( | EventTest | , |
description | ) |
Definition at line 222 of file test_Events.cpp.
Kokkos::utils::tests::callbacks::TYPED_TEST | ( | EventTest | , |
get_and_set_callback_from_and_in_eventset | ) |
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.
Kokkos::utils::tests::callbacks::TYPED_TEST | ( | EventTest | , |
traits | ) |
Definition at line 214 of file test_Events.cpp.
Kokkos::utils::tests::callbacks::TYPED_TEST | ( | RecorderListenerSingleEventTypeTest | , |
record | ) |
Definition at line 62 of file test_RecorderListener.cpp.
Kokkos::utils::tests::callbacks::TYPED_TEST | ( | TimerTest | , |
start_aborts_for_wrongly_enqueued_event | ) |
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.
Kokkos::utils::tests::callbacks::TYPED_TEST_SUITE | ( | EventTest | , |
EventTestTypes | ) |
Kokkos::utils::tests::callbacks::TYPED_TEST_SUITE | ( | RecorderListenerSingleEventTypeTest | , |
EventTestTypes | ) |
Kokkos::utils::tests::callbacks::TYPED_TEST_SUITE | ( | TimerTest | , |
TimerTypes | ) |