SimGrid  3.18
Versatile Simulation of Distributed Systems
smx_host.cpp File Reference
#include "mc/mc.h"
#include "smx_private.hpp"
#include "src/kernel/activity/CommImpl.hpp"
#include "src/mc/mc_replay.hpp"
#include "src/plugins/vm/VirtualMachineImpl.hpp"
#include "src/surf/surf_interface.hpp"
#include "xbt/ex.hpp"
#include <algorithm>

Namespaces

 simgrid
 Alltoall Bruck.
 
 simgrid::simix
 

Functions

 XBT_LOG_NEW_DEFAULT_SUBCATEGORY (simix_host, simix, "SIMIX hosts")
 
void SIMIX_host_off (sg_host_t h, smx_actor_t issuer)
 Stop the host if it is on. More...
 
sg_host_t sg_host_self ()
 
const char * sg_host_self_get_name ()
 
void SIMIX_host_add_auto_restart_process (sg_host_t host, const char *name, std::function< void()> code, void *data, double kill_time, std::map< std::string, std::string > *properties, int auto_restart)
 Add a process to the list of the processes that the host will restart when it comes back This function add a process to the list of the processes that will be restarted when the host comes back. More...
 
void SIMIX_host_autorestart (sg_host_t host)
 Restart the list of processes that have been registered to the host. More...
 
boost::intrusive_ptr< simgrid::kernel::activity::ExecImplSIMIX_execution_start (const char *name, double flops_amount, double priority, double bound, sg_host_t host)
 
boost::intrusive_ptr< simgrid::kernel::activity::ExecImplSIMIX_execution_parallel_start (const char *name, int host_nb, sg_host_t *host_list, double *flops_amount, double *bytes_amount, double rate, double timeout)
 
void simcall_HANDLER_execution_wait (smx_simcall_t simcall, smx_activity_t synchro)
 
void simcall_HANDLER_execution_test (smx_simcall_t simcall, smx_activity_t synchro)
 
void SIMIX_execution_finish (smx_activity_t synchro)
 
void SIMIX_set_category (smx_activity_t synchro, const char *category)
 

Function Documentation

◆ XBT_LOG_NEW_DEFAULT_SUBCATEGORY()

XBT_LOG_NEW_DEFAULT_SUBCATEGORY ( simix_host  ,
simix  ,
"SIMIX hosts"   
)

◆ SIMIX_host_off()

void SIMIX_host_off ( sg_host_t  h,
smx_actor_t  issuer 
)

Stop the host if it is on.

◆ sg_host_self()

sg_host_t sg_host_self ( )

◆ sg_host_self_get_name()

const char* sg_host_self_get_name ( )

◆ SIMIX_host_add_auto_restart_process()

void SIMIX_host_add_auto_restart_process ( sg_host_t  host,
const char *  name,
std::function< void()>  code,
void data,
double  kill_time,
std::map< std::string, std::string > *  properties,
int  auto_restart 
)

Add a process to the list of the processes that the host will restart when it comes back This function add a process to the list of the processes that will be restarted when the host comes back.

It is expected that this function is called when the host is down. The processes will only be restarted once, meaning that you will have to register the process again to restart the process again.

◆ SIMIX_host_autorestart()

void SIMIX_host_autorestart ( sg_host_t  host)

Restart the list of processes that have been registered to the host.

◆ SIMIX_execution_start()

boost::intrusive_ptr<simgrid::kernel::activity::ExecImpl> SIMIX_execution_start ( const char *  name,
double  flops_amount,
double  priority,
double  bound,
sg_host_t  host 
)

◆ SIMIX_execution_parallel_start()

boost::intrusive_ptr<simgrid::kernel::activity::ExecImpl> SIMIX_execution_parallel_start ( const char *  name,
int  host_nb,
sg_host_t host_list,
double *  flops_amount,
double *  bytes_amount,
double  rate,
double  timeout 
)

◆ simcall_HANDLER_execution_wait()

void simcall_HANDLER_execution_wait ( smx_simcall_t  simcall,
smx_activity_t  synchro 
)

◆ simcall_HANDLER_execution_test()

void simcall_HANDLER_execution_test ( smx_simcall_t  simcall,
smx_activity_t  synchro 
)

◆ SIMIX_execution_finish()

void SIMIX_execution_finish ( smx_activity_t  synchro)

◆ SIMIX_set_category()

void SIMIX_set_category ( smx_activity_t  synchro,
const char *  category 
)