Realm
A distributed, event-based tasking library
Loading...
Searching...
No Matches
Realm::Runtime Class Reference

#include <runtime.h>

Inheritance diagram for Realm::Runtime:

Classes

struct  KeyValueStoreVtable
 

Public Types

enum  RunStyle { ONE_TASK_ONLY , ONE_TASK_PER_NODE , ONE_TASK_PER_PROC }
 

Public Member Functions

 Runtime (void)
 
 Runtime (const Runtime &r)
 
Runtimeoperator= (const Runtime &r)
 
 ~Runtime (void)
 
bool network_init (int *argc, char ***argv)
 
bool network_init (const KeyValueStoreVtable &vtable)
 
void parse_command_line (int argc, char **argv)
 
void parse_command_line (std::vector< std::string > &cmdline, bool remove_realm_args=false)
 
void finish_configure (void)
 
bool configure_from_command_line (int argc, char **argv)
 
bool configure_from_command_line (std::vector< std::string > &cmdline, bool remove_realm_args=false)
 
void start (void)
 
bool init (int *argc, char ***argv)
 
bool register_task (Processor::TaskFuncID taskid, Processor::TaskFuncPtr taskptr)
 
bool register_reduction (Event &event, ReductionOpID redop_id, const ReductionOpUntyped *redop)
 
bool register_reduction (ReductionOpID redop_id, const ReductionOpUntyped *redop)
 
template<typename REDOP >
bool register_reduction (ReductionOpID redop_id)
 
template<typename REDOP >
bool register_reduction (Event &event, ReductionOpID redop_id)
 
bool register_custom_serdez (CustomSerdezID serdez_id, const CustomSerdezUntyped *serdez)
 
template<typename SERDEZ >
bool register_custom_serdez (CustomSerdezID serdez_id)
 
Event collective_spawn (Processor target_proc, Processor::TaskFuncID task_id, const void *args, size_t arglen, Event wait_on=Event::NO_EVENT, int priority=0)
 
Event collective_spawn_by_kind (Processor::Kind target_kind, Processor::TaskFuncID task_id, const void *args, size_t arglen, bool one_per_node=false, Event wait_on=Event::NO_EVENT, int priority=0)
 
 REALM_ATTR_DEPRECATED ("use collective_spawn calls instead", void run(Processor::TaskFuncID task_id=0, RunStyle style=ONE_TASK_ONLY, const void *args=0, size_t arglen=0, bool background=false))
 
void shutdown (Event wait_on=Event::NO_EVENT, int result_code=0)
 
int wait_for_shutdown (void)
 
bool create_configs (int argc, char **argv)
 
ModuleConfigget_module_config (const std::string &name) const
 
template<typename T >
T * get_module (const char *name)
 

Static Public Member Functions

static Runtime get_runtime (void)
 
static const char * get_library_version ()
 

Protected Member Functions

Moduleget_module_untyped (const char *name)
 

Protected Attributes

void * impl
 

Member Enumeration Documentation

◆ RunStyle

Enumerator
ONE_TASK_ONLY 
ONE_TASK_PER_NODE 
ONE_TASK_PER_PROC 

Constructor & Destructor Documentation

◆ Runtime() [1/2]

Realm::Runtime::Runtime ( void  )

◆ Runtime() [2/2]

Realm::Runtime::Runtime ( const Runtime r)
inline

◆ ~Runtime()

Realm::Runtime::~Runtime ( void  )
inline

Member Function Documentation

◆ collective_spawn()

Event Realm::Runtime::collective_spawn ( Processor  target_proc,
Processor::TaskFuncID  task_id,
const void *  args,
size_t  arglen,
Event  wait_on = Event::NO_EVENT,
int  priority = 0 
)

◆ collective_spawn_by_kind()

Event Realm::Runtime::collective_spawn_by_kind ( Processor::Kind  target_kind,
Processor::TaskFuncID  task_id,
const void *  args,
size_t  arglen,
bool  one_per_node = false,
Event  wait_on = Event::NO_EVENT,
int  priority = 0 
)

◆ configure_from_command_line() [1/2]

bool Realm::Runtime::configure_from_command_line ( int  argc,
char **  argv 
)

◆ configure_from_command_line() [2/2]

bool Realm::Runtime::configure_from_command_line ( std::vector< std::string > &  cmdline,
bool  remove_realm_args = false 
)

◆ create_configs()

bool Realm::Runtime::create_configs ( int  argc,
char **  argv 
)

◆ finish_configure()

void Realm::Runtime::finish_configure ( void  )

◆ get_library_version()

static const char * Realm::Runtime::get_library_version ( )
static

◆ get_module()

template<typename T >
T * Realm::Runtime::get_module ( const char *  name)
inline

◆ get_module_config()

ModuleConfig * Realm::Runtime::get_module_config ( const std::string &  name) const

◆ get_module_untyped()

Module * Realm::Runtime::get_module_untyped ( const char *  name)
protected

◆ get_runtime()

static Runtime Realm::Runtime::get_runtime ( void  )
static

◆ init()

bool Realm::Runtime::init ( int *  argc,
char ***  argv 
)

◆ network_init() [1/2]

bool Realm::Runtime::network_init ( const KeyValueStoreVtable vtable)

◆ network_init() [2/2]

bool Realm::Runtime::network_init ( int *  argc,
char ***  argv 
)

◆ operator=()

Runtime & Realm::Runtime::operator= ( const Runtime r)
inline

◆ parse_command_line() [1/2]

void Realm::Runtime::parse_command_line ( int  argc,
char **  argv 
)

◆ parse_command_line() [2/2]

void Realm::Runtime::parse_command_line ( std::vector< std::string > &  cmdline,
bool  remove_realm_args = false 
)

◆ REALM_ATTR_DEPRECATED()

Realm::Runtime::REALM_ATTR_DEPRECATED ( "use collective_spawn calls instead"  ,
void   runProcessor::TaskFuncID task_id=0, RunStyle style=ONE_TASK_ONLY, const void *args=0, size_t arglen=0, bool background=false 
)

◆ register_custom_serdez() [1/2]

template<typename SERDEZ >
bool Realm::Runtime::register_custom_serdez ( CustomSerdezID  serdez_id)
inline

◆ register_custom_serdez() [2/2]

bool Realm::Runtime::register_custom_serdez ( CustomSerdezID  serdez_id,
const CustomSerdezUntyped serdez 
)

◆ register_reduction() [1/4]

template<typename REDOP >
bool Realm::Runtime::register_reduction ( Event event,
ReductionOpID  redop_id 
)
inline

◆ register_reduction() [2/4]

bool Realm::Runtime::register_reduction ( Event event,
ReductionOpID  redop_id,
const ReductionOpUntyped redop 
)

◆ register_reduction() [3/4]

template<typename REDOP >
bool Realm::Runtime::register_reduction ( ReductionOpID  redop_id)
inline

◆ register_reduction() [4/4]

bool Realm::Runtime::register_reduction ( ReductionOpID  redop_id,
const ReductionOpUntyped redop 
)
inline

◆ register_task()

bool Realm::Runtime::register_task ( Processor::TaskFuncID  taskid,
Processor::TaskFuncPtr  taskptr 
)

◆ shutdown()

void Realm::Runtime::shutdown ( Event  wait_on = Event::NO_EVENT,
int  result_code = 0 
)

◆ start()

void Realm::Runtime::start ( void  )

◆ wait_for_shutdown()

int Realm::Runtime::wait_for_shutdown ( void  )

Member Data Documentation

◆ impl

void* Realm::Runtime::impl
protected

The documentation for this class was generated from the following file: