Celeritas  0.5.0-86+4a8eea4
Functions
global/ActionLauncher.hh File Reference
#include <utility>
#include "corecel/Config.hh"
#include "corecel/Assert.hh"
#include "corecel/Types.hh"
#include "corecel/sys/MultiExceptionHandler.hh"
#include "corecel/sys/ThreadId.hh"
#include "ActionInterface.hh"
#include "CoreParams.hh"
#include "CoreState.hh"
#include "KernelContextException.hh"
This graph shows which files directly or indirectly include this file:

Functions

template<class F >
void celeritas::launch_core (std::string_view label, celeritas::CoreParams const &params, celeritas::CoreState< MemSpace::host > &state, F &&execute_thread)
 Helper function to run an executor in parallel on CPU. More...
 
template<class F >
void celeritas::launch_action (CoreStepActionInterface const &action, celeritas::CoreParams const &params, celeritas::CoreState< MemSpace::host > &state, F &&execute_thread)
 Helper function to run an action in parallel on CPU over all states. More...
 

Function Documentation

◆ launch_action()

template<class F >
void celeritas::launch_action ( CoreStepActionInterface const &  action,
celeritas::CoreParams const &  params,
celeritas::CoreState< MemSpace::host > &  state,
F &&  execute_thread 
)

Helper function to run an action in parallel on CPU over all states.

Example:

void FooAction::step(CoreParams const& params,
CoreStateHost& state) const
{
launch_action(*this, params, state, make_blah_executor(blah));
}
void launch_action(CoreStepActionInterface const &action, celeritas::CoreParams const &params, celeritas::CoreState< MemSpace::host > &state, F &&execute_thread)
Helper function to run an action in parallel on CPU over all states.
Definition: global/ActionLauncher.hh:75

◆ launch_core()

template<class F >
void celeritas::launch_core ( std::string_view  label,
celeritas::CoreParams const &  params,
celeritas::CoreState< MemSpace::host > &  state,
F &&  execute_thread 
)

Helper function to run an executor in parallel on CPU.

Example:

void FooHelper::step(CoreParams const& params,
CoreStateHost& state) const
{
launch_core(params, state, "foo-helper", make_blah_executor(blah));
}
void launch_core(std::string_view label, celeritas::CoreParams const &params, celeritas::CoreState< MemSpace::host > &state, F &&execute_thread)
Helper function to run an executor in parallel on CPU.
Definition: global/ActionLauncher.hh:40