Interface Documentation
Version: invalid
Public Member Functions | Static Public Member Functions | Friends | List of all members
flecsi::run::context_t Struct Reference
Inheritance diagram for flecsi::run::context_t:
Inheritance graph
[legend]
Collaboration diagram for flecsi::run::context_t:
Collaboration graph
[legend]

Public Member Functions

int initialize (int argc, char **argv, bool dependent)
 
void finalize ()
 
int start (const std::function< int()> &)
 
void clear ()
 
size_t process () const
 
size_t processes () const
 
size_t threads_per_process () const
 
size_t threads () const
 
void set_mpi_task (std::function< void()> mpi_task)
 
void set_all_processes (const LegionRuntime::Arrays::Rect< 1 > &all_processes)
 
const LegionRuntime::Arrays::Rect< 1 > & all_processes () const
 
void handoff_to_mpi (Legion::Context &ctx, Legion::Runtime *runtime)
 
Legion::FutureMap wait_on_mpi (Legion::Context &ctx, Legion::Runtime *runtime)
 
void connect_with_mpi (Legion::Context &ctx, Legion::Runtime *runtime)
 
int initialize (int argc, char **argv, bool dependent)
 
void finalize ()
 
int start (const std::function< int()> &)
 
size_t process () const
 
size_t processes () const
 
size_t threads_per_process () const
 
size_t threads () const
 
size_t color () const
 
size_t colors () const
 
- Public Member Functions inherited from flecsi::run::context
 context (const context &)=delete
 
contextoperator= (const context &)=delete
 
 context (context &&)=delete
 
contextoperator= (context &&)=delete
 
bool initialized ()
 
boost::program_options::positional_options_description & positional_description ()
 
std::map< std::string, std::string > & positional_help ()
 
boost::program_options::options_description & hidden_options ()
 
std::map< std::string, std::pair< bool, std::function< bool(boost::any const &)> > > & option_checks ()
 
std::vector< char * > & argv ()
 
std::string const & program ()
 
auto & descriptions_map ()
 
std::vector< std::string > const & unrecognized_options ()
 
int initialize_generic (int argc, char **argv, bool dependent)
 
void finalize_generic ()
 
int initialize (int argc, char **argv, bool dependent)
 
void finalize ()
 
int start (const std::function< int(int, char **)> action &)
 
std::size_t process () const
 
std::size_t processes () const
 
std::size_t threads_per_process () const
 
std::size_t threads () const
 
std::size_t color () const
 
std::size_t colors () const
 
int & exit_status ()
 
void register_init (void callback())
 
bool topology_fields_registered (size_t type_key, size_t instance_key)
 
template<class Topo , std::size_t Index>
void add_field_info (const data::field_info_t &field_info)
 
template<class Topo , std::size_t Index = topo::default_space<Topo>>
field_info_store_t const & get_field_info_store () const
 
void add_index_subspace (size_t index_subspace, size_t capacity)
 
void add_index_subspace (const index_subspace_info_t &info)
 
std::map< size_t, index_subspace_info_t > & index_subspace_info ()
 
size_t const & tasks_executed () const
 
size_t & tasks_executed ()
 

Static Public Member Functions

static size_t task_depth ()
 
static size_t color ()
 
static size_t colors ()
 
static size_t task_depth ()
 
- Static Public Member Functions inherited from flecsi::run::context
static context_tinstance ()
 
static std::size_t task_depth ()
 

Friends

leg::task top_level_task
 

Additional Inherited Members

- Public Types inherited from flecsi::run::context
using field_info_store_t = data::fields
 
- Protected Member Functions inherited from flecsi::run::context
void start ()
 
void clear ()
 
- Protected Attributes inherited from flecsi::run::context
std::string program_
 
std::vector< char * > argv_
 
std::string backend_
 
std::string flog_tags_
 
int flog_verbose_
 
int64_t flog_output_process_
 
bool initialize_dependent_ = true
 
std::map< std::string, boost::program_options::options_description > descriptions_map_
 
boost::program_options::positional_options_description positional_desc_
 
boost::program_options::options_description hidden_options_
 
std::map< std::string, std::string > positional_help_
 
std::map< std::string, std::pair< bool, std::function< bool(boost::any const &)> > > option_checks_
 
std::vector< std::string > unrecognized_options_
 
bool initialized_ = false
 
size_t process_ = std::numeric_limits<size_t>::max()
 
size_t processes_ = std::numeric_limits<size_t>::max()
 
size_t threads_per_process_ = std::numeric_limits<size_t>::max()
 
size_t threads_ = std::numeric_limits<size_t>::max()
 
int exit_status_ = 0
 
std::unordered_map< size_t, void * > function_registry_
 
std::set< std::pair< size_t, size_t > > registered_topology_fields_
 
std::unordered_map< size_t, std::vector< field_info_store_t > > topology_field_info_map_
 
std::map< size_t, index_subspace_info_tindex_subspace_map_
 
size_t tasks_executed_ = 0
 

Member Function Documentation

◆ all_processes()

const LegionRuntime::Arrays::Rect<1>& flecsi::run::context_t::all_processes ( ) const
inline

Return the distributed-memory domain.

◆ connect_with_mpi()

void flecsi::run::context_t::connect_with_mpi ( Legion::Context &  ctx,
Legion::Runtime *  runtime 
)

Connect with the MPI runtime.

Parameters
ctxThe Legion runtime context.
runtimeThe Legion task runtime pointer.

◆ finalize()

void flecsi::run::context_t::finalize ( )

Documnetation for this interface is in the top-level context type.

◆ handoff_to_mpi()

void flecsi::run::context_t::handoff_to_mpi ( Legion::Context &  ctx,
Legion::Runtime *  runtime 
)

Switch execution to the MPI runtime.

Parameters
ctxThe Legion runtime context.
runtimeThe Legion task runtime pointer.

◆ initialize()

int flecsi::run::context_t::initialize ( int  argc,
char **  argv,
bool  dependent 
)

Documnetation for this interface is in the top-level context type.

◆ process()

size_t flecsi::run::context_t::process ( ) const
inline

Documnetation for this interface is in the top-level context type.

◆ set_all_processes()

void flecsi::run::context_t::set_all_processes ( const LegionRuntime::Arrays::Rect< 1 > &  all_processes)
inline

Set the distributed-memory domain.

◆ set_mpi_task()

void flecsi::run::context_t::set_mpi_task ( std::function< void()>  mpi_task)
inline

Set the MPI user task. When control is given to the MPI runtime it will execute whichever function is currently set.

◆ start()

int flecsi::run::context_t::start ( const std::function< int()> &  )

Documnetation for this interface is in the top-level context type.

◆ wait_on_mpi()

Legion::FutureMap flecsi::run::context_t::wait_on_mpi ( Legion::Context &  ctx,
Legion::Runtime *  runtime 
)

Wait on the MPI runtime to finish the current task execution.

Parameters
ctxThe Legion runtime context.
runtimeThe Legion task runtime pointer.
Returns
A future map with the result of the task execution.

The documentation for this struct was generated from the following files: