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

#include <prealm.h>

Inheritance diagram for PRealm::Runtime:
Collaboration diagram for PRealm::Runtime:

Public Member Functions

 Runtime (const Realm::Runtime &r)
 
 Runtime (const Runtime &r)=default
 
 Runtime (Runtime &&r)=default
 
Runtimeoperator= (const Realm::Runtime &r)
 
Runtimeoperator= (const Runtime &r)=default
 
Runtimeoperator= (Runtime &&r)=default
 
void parse_command_line (int argc, char **argv)
 
void parse_command_line (std::vector< std::string > &cmdline, bool remove_realm_args=false)
 
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 finish_configure (void)
 
void start (void)
 
bool init (int *argc, char ***argv)
 
bool register_task (Processor::TaskFuncID taskid, Processor::TaskFuncPtr taskptr)
 
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)
 
void shutdown (Event wait_on=Event::NO_EVENT, int result_code=0)
 
int wait_for_shutdown (void)
 
template<typename T >
T * get_module (const char *name)
 
- Public Member Functions inherited from Realm::Runtime
 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 Public Member Functions inherited from Realm::Runtime
static Runtime get_runtime (void)
 
static const char * get_library_version ()
 

Protected Member Functions

Moduleget_module_untyped (const char *name)
 
- Protected Member Functions inherited from Realm::Runtime
Moduleget_module_untyped (const char *name)
 

Additional Inherited Members

- Public Types inherited from Realm::Runtime
enum  RunStyle { ONE_TASK_ONLY , ONE_TASK_PER_NODE , ONE_TASK_PER_PROC }
 
- Protected Attributes inherited from Realm::Runtime
void * impl
 

Constructor & Destructor Documentation

◆ Runtime() [1/3]

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

◆ Runtime() [2/3]

PRealm::Runtime::Runtime ( const Runtime r)
default

◆ Runtime() [3/3]

PRealm::Runtime::Runtime ( Runtime &&  r)
default

Member Function Documentation

◆ collective_spawn()

Event PRealm::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 PRealm::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 PRealm::Runtime::configure_from_command_line ( int  argc,
char **  argv 
)

◆ configure_from_command_line() [2/2]

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

◆ finish_configure()

void PRealm::Runtime::finish_configure ( void  )

◆ get_module()

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

◆ get_module_untyped()

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

◆ get_runtime()

static Runtime PRealm::Runtime::get_runtime ( void  )
static

◆ init()

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

◆ operator=() [1/3]

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

◆ operator=() [2/3]

Runtime & PRealm::Runtime::operator= ( const Runtime r)
default

◆ operator=() [3/3]

Runtime & PRealm::Runtime::operator= ( Runtime &&  r)
default

◆ parse_command_line() [1/2]

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

◆ parse_command_line() [2/2]

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

◆ register_task()

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

◆ shutdown()

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

◆ start()

void PRealm::Runtime::start ( void  )

◆ wait_for_shutdown()

int PRealm::Runtime::wait_for_shutdown ( void  )

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