|
kokkos-utils 0.0.6
|
Namespaces | |
| namespace | impl |
Classes | |
| struct | CustomEvent |
| struct | CustomEventWithPayload |
| 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 (ElementAtMatcher, CanDescribeItself) | |
| TEST (ElementAtMatcher, Matches) | |
| TEST (PartialMatcher, AllocDescriptor) | |
| TEST (PartialMatcher, BeginDeepCopyEvent) | |
| constexpr bool | test_singleton_traits () |
| TEST (Manager, initialize_finalize) | |
| TEST (Manager, dispatch) | |
| TEST (Manager, get_next_event_id) | |
| 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, default_constructed) | |
| 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) | |
| std::ostream & | operator<< (std::ostream &out, const CustomEvent &event) |
| std::ostream & | operator<< (std::ostream &out, const CustomEventWithPayload &event) |
| TEST_F (RecorderListenerTest, record_mix_kokkos_and_custom_events) | |
| TEST_F (RecorderListenerTest, record_custom_event) | |
| 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 39 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 173 of file test_RecorderListener.cpp.
List of event types that have a name.
Definition at line 42 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 41 of file test_TimerListener.cpp.
Listener to time regions whose name matches a regex.
Definition at line 183 of file test_TimerListener.cpp.
Definition at line 107 of file test_EnqueuedEventTimer.cpp.
|
inline |
Definition at line 218 of file test_RecorderListener.cpp.
|
inline |
Definition at line 229 of file test_RecorderListener.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 190 of file test_Matchers.cpp.
| Kokkos::utils::tests::callbacks::TEST | ( | AnyEventMatcher | , |
| traits | ) |
Definition at line 182 of file test_Matchers.cpp.
| Kokkos::utils::tests::callbacks::TEST | ( | ConjunctionMatcher | , |
| default_constructed | ) |
Definition at line 356 of file test_Matchers.cpp.
| Kokkos::utils::tests::callbacks::TEST | ( | ConjunctionMatcher | , |
| different_event_type_sets | ) |
Definition at line 339 of file test_Matchers.cpp.
| Kokkos::utils::tests::callbacks::TEST | ( | ConjunctionMatcher | , |
| everyone_agrees | ) |
Definition at line 313 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 381 of file test_Matchers.cpp.
| Kokkos::utils::tests::callbacks::TEST | ( | ConjunctionMatcher | , |
| traits | ) |
Definition at line 300 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 | ( | ElementAtMatcher | , |
| CanDescribeItself | ) |
Definition at line 51 of file test_Helpers.cpp.
| Kokkos::utils::tests::callbacks::TEST | ( | ElementAtMatcher | , |
| Matches | ) |
Definition at line 61 of file test_Helpers.cpp.
| Kokkos::utils::tests::callbacks::TEST | ( | EventBeginEndIdMatcher | , |
| operator_parentheses | ) |
Definition at line 231 of file test_Matchers.cpp.
| Kokkos::utils::tests::callbacks::TEST | ( | EventBeginEndIdMatcher | , |
| traits | ) |
Definition at line 220 of file test_Matchers.cpp.
| Kokkos::utils::tests::callbacks::TEST | ( | EventIdMatcher | , |
| operator_parentheses | ) |
Definition at line 291 of file test_Matchers.cpp.
| Kokkos::utils::tests::callbacks::TEST | ( | EventIdMatcher | , |
| traits | ) |
Definition at line 274 of file test_Matchers.cpp.
| Kokkos::utils::tests::callbacks::TEST | ( | EventInProfileSectionMatcher | , |
| in_profile_section_matcher | ) |
Definition at line 104 of file test_Matchers.cpp.
| Kokkos::utils::tests::callbacks::TEST | ( | EventInProfileSectionMatcher | , |
| traits | ) |
Definition at line 94 of file test_Matchers.cpp.
| Kokkos::utils::tests::callbacks::TEST | ( | EventNameMatcher | , |
| by_name | ) |
Definition at line 85 of file test_Matchers.cpp.
| Kokkos::utils::tests::callbacks::TEST | ( | EventNameMatcher | , |
| traits | ) |
Definition at line 77 of file test_Matchers.cpp.
| Kokkos::utils::tests::callbacks::TEST | ( | EventQueueMatcher | , |
| operator_parentheses | ) |
Definition at line 260 of file test_Matchers.cpp.
| Kokkos::utils::tests::callbacks::TEST | ( | EventQueueMatcher | , |
| traits | ) |
Definition at line 243 of file test_Matchers.cpp.
| Kokkos::utils::tests::callbacks::TEST | ( | EventRegexMatcher | , |
| regex_matcher | ) |
Definition at line 65 of file test_Matchers.cpp.
| Kokkos::utils::tests::callbacks::TEST | ( | EventRegexMatcher | , |
| traits | ) |
Definition at line 55 of file test_Matchers.cpp.
| Kokkos::utils::tests::callbacks::TEST | ( | EventRegionMatcher | , |
| boundary_region_matcher | ) |
Definition at line 158 of file test_Matchers.cpp.
| Kokkos::utils::tests::callbacks::TEST | ( | EventRegionMatcher | , |
| traits | ) |
Definition at line 126 of file test_Matchers.cpp.
| Kokkos::utils::tests::callbacks::TEST | ( | EventRegionMatcher | , |
| within_region_matcher | ) |
Definition at line 136 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 211 of file test_Matchers.cpp.
| Kokkos::utils::tests::callbacks::TEST | ( | EventTypeMatcher | , |
| traits | ) |
Definition at line 200 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 176 of file test_RecorderListener.cpp.
Definition at line 84 of file test_Manager.cpp.
| Kokkos::utils::tests::callbacks::TEST | ( | Manager | , |
| get_next_event_id | ) |
Definition at line 94 of file test_Manager.cpp.
| Kokkos::utils::tests::callbacks::TEST | ( | Manager | , |
| initialize_finalize | ) |
Definition at line 51 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 49 of file test_TimerListener.cpp.
| Kokkos::utils::tests::callbacks::TEST | ( | PartialMatcher | , |
| AllocDescriptor | ) |
Definition at line 73 of file test_Helpers.cpp.
| Kokkos::utils::tests::callbacks::TEST | ( | PartialMatcher | , |
| BeginDeepCopyEvent | ) |
Definition at line 89 of file test_Helpers.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 47 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 186 of file test_TimerListener.cpp.
| Kokkos::utils::tests::callbacks::TEST | ( | RegionTimerListener | , |
| traits_when_used_with_enqueued_event_timer | ) |
Definition at line 232 of file test_TimerListener.cpp.
| Kokkos::utils::tests::callbacks::TEST_F | ( | EnqueuedEventTimerTest | , |
| duration | ) |
Check that the duration is greater than 0.
Definition at line 52 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 67 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 165 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 132 of file test_Manager.cpp.
| Kokkos::utils::tests::callbacks::TEST_F | ( | ManagerTest | , |
| listener_from_lambda | ) |
Definition at line 193 of file test_Manager.cpp.
| Kokkos::utils::tests::callbacks::TEST_F | ( | RecorderListenerTest | , |
| record | ) |
Shorter version using ::testing::FieldsAre and ::testing::_ matchers.
Definition at line 149 of file test_RecorderListener.cpp.
| Kokkos::utils::tests::callbacks::TEST_F | ( | RecorderListenerTest | , |
| record_custom_event | ) |
Definition at line 282 of file test_RecorderListener.cpp.
| Kokkos::utils::tests::callbacks::TEST_F | ( | RecorderListenerTest | , |
| record_mix_kokkos_and_custom_events | ) |
Kokkos and custom events. Definition at line 240 of file test_RecorderListener.cpp.
| Kokkos::utils::tests::callbacks::TEST_F | ( | RecorderListenerTest | , |
| recorded_events | ) |
Check the recorded events.
Definition at line 82 of file test_RecorderListener.cpp.
| Kokkos::utils::tests::callbacks::TEST_F | ( | SequenceOfRegionTimerListenerTest | , |
| reset | ) |
Definition at line 39 of file test_SequenceOfRegionTimerListener.cpp.
| Kokkos::utils::tests::callbacks::TEST_F | ( | TimerListenerTest | , |
| begin_and_end_matched | ) |
reset. Definition at line 91 of file test_TimerListener.cpp.
| Kokkos::utils::tests::callbacks::TEST_F | ( | TimerListenerTest | , |
| begin_matched_but_end_not_matched | ) |
Definition at line 76 of file test_TimerListener.cpp.
| Kokkos::utils::tests::callbacks::TEST_F | ( | TimerListenerTest | , |
| begin_not_matched_and_end_not_matched | ) |
Definition at line 65 of file test_TimerListener.cpp.
| Kokkos::utils::tests::callbacks::TEST_F | ( | TimerListenerTest | , |
| begin_not_matched_if_device_id_does_not_match | ) |
Definition at line 117 of file test_TimerListener.cpp.
| Kokkos::utils::tests::callbacks::TEST_F | ( | TimerListenerTest | , |
| parallel_for | ) |
Definition at line 131 of file test_TimerListener.cpp.
| Kokkos::utils::tests::callbacks::TEST_F | ( | TimerListenerTest | , |
| region | ) |
Definition at line 209 of file test_TimerListener.cpp.
| Kokkos::utils::tests::callbacks::TEST_F | ( | TimerListenerTest | , |
| with_launch | ) |
Definition at line 155 of file test_TimerListener.cpp.
| Kokkos::utils::tests::callbacks::TEST_F_WITH_CB_MGR | ( | FenceFinderTest | , |
| recorded_events | ) |
Check the recorded events.
Definition at line 188 of file test_RecorderListener.cpp.
|
constexpr |
Definition at line 35 of file test_Manager.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 67 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 119 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 | ) |