Namespaces | |
namespace | impl |
Classes | |
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 | TesterListener |
Listener that stores the events it receives. More... | |
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 | event_in_profile_section_recorder_t = RecorderListener<EventInProfileSectionRegexMatcher, EventTypeList> |
Listener to record events that occur in a profile section. | |
using | fence_finder_t = RecorderListener<EventRegexMatcher, BeginFenceEvent> |
Listener to record fence events. | |
Functions | |
TEST (EventTest, BeginEvent) | |
TEST (EventTest, EndEvent) | |
TEST (EventTest, DataEvent) | |
TEST (EventTest, ProfileSectionManipulationEvent) | |
TEST (EventTest, NamedEvent) | |
TEST (EventTest, name) | |
TYPED_TEST_SUITE (EventTest, EventTestTypes) | |
TYPED_TEST (EventTest, concept) | |
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 (EventInProfileSectionRegexMatcher, traits) | |
TEST (EventInProfileSectionRegexMatcher, in_profile_section_matcher) | |
TEST (AnyEventMatcher, traits) | |
TEST (AnyEventMatcher, operator_parentheses) | |
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) | |
using Kokkos::utils::tests::callbacks::event_in_profile_section_recorder_t = RecorderListener<EventInProfileSectionRegexMatcher, EventTypeList> |
Listener to record events that occur in a profile section.
Definition at line 33 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 168 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 97 of file test_Matchers.cpp.
Kokkos::utils::tests::callbacks::TEST | ( | AnyEventMatcher | , |
traits | ) |
Definition at line 90 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 | ( | EventInProfileSectionRegexMatcher | , |
in_profile_section_matcher | ) |
Definition at line 68 of file test_Matchers.cpp.
Kokkos::utils::tests::callbacks::TEST | ( | EventInProfileSectionRegexMatcher | , |
traits | ) |
Definition at line 61 of file test_Matchers.cpp.
Kokkos::utils::tests::callbacks::TEST | ( | EventRegexMatcher | , |
regex_matcher | ) |
Definition at line 49 of file test_Matchers.cpp.
Kokkos::utils::tests::callbacks::TEST | ( | EventRegexMatcher | , |
traits | ) |
Definition at line 28 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 | , |
ProfileSectionManipulationEvent | ) |
Definition at line 68 of file test_Events.cpp.
Kokkos::utils::tests::callbacks::TEST | ( | FenceFinder | , |
traits | ) |
Check that fence_finder_t is a listener for Kokkos::utils::callbacks::BeginFenceEvent.
Definition at line 171 of file test_RecorderListener.cpp.
Kokkos::utils::tests::callbacks::TEST | ( | Manager | , |
singleton_traits | ) |
Definition at line 39 of file test_Manager.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_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 100 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 67 of file test_Manager.cpp.
Kokkos::utils::tests::callbacks::TEST_F | ( | ManagerTest | , |
listener_from_lambda | ) |
Definition at line 128 of file test_Manager.cpp.
Kokkos::utils::tests::callbacks::TEST_F | ( | RecorderListenerTest | , |
record | ) |
Shorter version using ::testing::FieldsAre
and ::testing::_
matchers.
Definition at line 144 of file test_RecorderListener.cpp.
Kokkos::utils::tests::callbacks::TEST_F | ( | RecorderListenerTest | , |
recorded_events | ) |
Check the recorded events.
Definition at line 79 of file test_RecorderListener.cpp.
Kokkos::utils::tests::callbacks::TEST_F_WITH_CB_MGR | ( | FenceFinderTest | , |
recorded_events | ) |
Check the recorded events.
Definition at line 183 of file test_RecorderListener.cpp.
Kokkos::utils::tests::callbacks::TYPED_TEST | ( | EventTest | , |
concept | ) |
Definition at line 188 of file test_Events.cpp.
Kokkos::utils::tests::callbacks::TYPED_TEST | ( | EventTest | , |
description | ) |
Definition at line 202 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 211 of file test_Events.cpp.
Kokkos::utils::tests::callbacks::TYPED_TEST | ( | EventTest | , |
traits | ) |
Definition at line 194 of file test_Events.cpp.
Kokkos::utils::tests::callbacks::TYPED_TEST | ( | RecorderListenerSingleEventTypeTest | , |
record | ) |
Definition at line 64 of file test_RecorderListener.cpp.
Kokkos::utils::tests::callbacks::TYPED_TEST_SUITE | ( | EventTest | , |
EventTestTypes | ) |
Kokkos::utils::tests::callbacks::TYPED_TEST_SUITE | ( | RecorderListenerSingleEventTypeTest | , |
EventTestTypes | ) |