kokkos-execution 0.0.1
Loading...
Searching...
No Matches
Tests::ExecutionSpaceImpl::ThenTest_then_lifetime_Test Class Reference
Inheritance diagram for Tests::ExecutionSpaceImpl::ThenTest_then_lifetime_Test:
Tests::ExecutionSpaceImpl::ThenTest Tests::Utils::ExecutionSpaceContextTest< TEST_EXECUTION_SPACE > Kokkos::utils::tests::scoped::callbacks::Manager Tests::Utils::ContextTest< Kokkos::Execution::ExecutionSpaceContext, Exec > Kokkos::utils::tests::scoped::ExecutionSpace< Exec >

Public Member Functions

 ThenTest_then_lifetime_Test ()=default
 ~ThenTest_then_lifetime_Test () override=default
 ThenTest_then_lifetime_Test (const ThenTest_then_lifetime_Test &)=delete
ThenTest_then_lifetime_Testoperator= (const ThenTest_then_lifetime_Test &)=delete
 ThenTest_then_lifetime_Test (ThenTest_then_lifetime_Test &&) noexcept=delete
ThenTest_then_lifetime_Testoperator= (ThenTest_then_lifetime_Test &&) noexcept=delete
Public Member Functions inherited from Kokkos::utils::tests::scoped::ExecutionSpace< Exec >
 ExecutionSpace ()
ExecutionSpaceoperator= (const ExecutionSpace &)=delete
Public Member Functions inherited from Kokkos::utils::tests::scoped::callbacks::Manager
 Manager ()
 ~Manager ()
 Manager (const Manager &)=delete
Manageroperator= (const Manager &)=delete

Private Member Functions

void TestBody () override

Static Private Attributes

static ::testing::TestInfo *const test_info_ = ::testing::internal::MakeAndRegisterTestInfo( "ThenTest", "then_lifetime", nullptr, nullptr, ::testing::internal::CodeLocation(__FILE__, __LINE__), (::testing::internal::GetTypeId<ThenTest>()), ::testing::internal::SuiteApiResolver< ThenTest>::GetSetUpCaseOrSuite(__FILE__, __LINE__), ::testing::internal::SuiteApiResolver< ThenTest>::GetTearDownCaseOrSuite(__FILE__, __LINE__), new ::testing::internal::TestFactoryImpl< ThenTest_then_lifetime_Test >)

Additional Inherited Members

Public Types inherited from Tests::ExecutionSpaceImpl::ThenTest
using recorder_listener_t
using variant_t = typename recorder_listener_t::event_variant_t
Public Types inherited from Tests::Utils::ContextTest< Kokkos::Execution::ExecutionSpaceContext, Exec >
using context_t
using scheduler_t
using schedule_sender_t
using value_t
using view_s_t
Public Attributes inherited from Kokkos::utils::tests::scoped::ExecutionSpace< Exec >
Exec exec
Static Public Attributes inherited from Tests::Utils::ContextTest< Kokkos::Execution::ExecutionSpaceContext, Exec >
static constexpr bool on_device

Detailed Description

Test
Check the sequence of events when a Kokkos::View is captured in a chain of work.

This test ensures that the deallocation happens after the kernels are finished.

Definition at line 224 of file test_then.cpp.

Constructor & Destructor Documentation

◆ ThenTest_then_lifetime_Test() [1/3]

Tests::ExecutionSpaceImpl::ThenTest_then_lifetime_Test::ThenTest_then_lifetime_Test ( )
default

◆ ~ThenTest_then_lifetime_Test()

Tests::ExecutionSpaceImpl::ThenTest_then_lifetime_Test::~ThenTest_then_lifetime_Test ( )
overridedefault

◆ ThenTest_then_lifetime_Test() [2/3]

Tests::ExecutionSpaceImpl::ThenTest_then_lifetime_Test::ThenTest_then_lifetime_Test ( const ThenTest_then_lifetime_Test & )
delete

◆ ThenTest_then_lifetime_Test() [3/3]

Tests::ExecutionSpaceImpl::ThenTest_then_lifetime_Test::ThenTest_then_lifetime_Test ( ThenTest_then_lifetime_Test && )
deletenoexcept

Member Function Documentation

◆ operator=() [1/2]

◆ operator=() [2/2]

ThenTest_then_lifetime_Test & Tests::ExecutionSpaceImpl::ThenTest_then_lifetime_Test::operator= ( ThenTest_then_lifetime_Test && )
deletenoexcept

◆ TestBody()

void Tests::ExecutionSpaceImpl::ThenTest_then_lifetime_Test::TestBody ( )
overrideprivate

The context must be kept alive until the chain has completed.

Create the chain in a scope.

Run the whole test in a lambda.

The chain environment advertises the default domain, and completes on the Kokkos::Execution::ExecutionSpaceImpl::Domain domain.

It has a completion scheduler for the value channel.

Definition at line 224 of file test_then.cpp.

Member Data Documentation

◆ test_info_

testing::TestInfo *const Tests::ExecutionSpaceImpl::ThenTest_then_lifetime_Test::test_info_ = ::testing::internal::MakeAndRegisterTestInfo( "ThenTest", "then_lifetime", nullptr, nullptr, ::testing::internal::CodeLocation(__FILE__, __LINE__), (::testing::internal::GetTypeId<ThenTest>()), ::testing::internal::SuiteApiResolver< ThenTest>::GetSetUpCaseOrSuite(__FILE__, __LINE__), ::testing::internal::SuiteApiResolver< ThenTest>::GetTearDownCaseOrSuite(__FILE__, __LINE__), new ::testing::internal::TestFactoryImpl< ThenTest_then_lifetime_Test >)
staticprivate

Definition at line 224 of file test_then.cpp.


The documentation for this class was generated from the following file:
  • /__w/kokkos-execution/kokkos-execution/tests/execution_space/test_then.cpp