SimGrid  3.14.159
Versatile Simulation of Distributed Systems
sd_global.cpp File Reference
#include "simdag_private.hpp"
#include "simgrid/host.h"
#include "simgrid/s4u/engine.hpp"
#include "simgrid/sg_config.h"
#include "src/include/instr/instr_interface.h"
#include "src/surf/surf_interface.hpp"

Namespaces

 simgrid
 Host datatype from SIMIX POV.
 
 simgrid::sd
 

Functions

 XBT_LOG_NEW_CATEGORY (sd, "Logging specific to SimDag")
 
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY (sd_kernel, sd, "Logging specific to SimDag (kernel)")
 
std::set< SD_task_t > * simgrid::sd::simulate (double how_long)
 
const char * __get_state_name (e_SD_task_state_t state)
 helper for pretty printing of task state More...
 
void SD_init (int *argc, char **argv)
 Initializes SD internal data. More...
 
void SD_config (const char *key, const char *value)
 set a configuration variable More...
 
void SD_create_environment (const char *platform_file)
 Creates the environment. More...
 
xbt_dynar_t SD_simulate (double how_long)
 Launches the simulation. More...
 
double SD_get_clock ()
 Returns the current clock, in seconds. More...
 
void SD_exit ()
 Destroys all SD internal data This function should be called when the simulation is over. More...
 

Variables

simgrid::sd::Globalsd_global = nullptr
 

Function Documentation

§ XBT_LOG_NEW_CATEGORY()

XBT_LOG_NEW_CATEGORY ( sd  ,
"Logging specific to SimDag"   
)

§ XBT_LOG_NEW_DEFAULT_SUBCATEGORY()

XBT_LOG_NEW_DEFAULT_SUBCATEGORY ( sd_kernel  ,
sd  ,
"Logging specific to SimDag (kernel)"   
)

§ __get_state_name()

const char* __get_state_name ( e_SD_task_state_t  state)

helper for pretty printing of task state

Parameters
statethe state of a task
Returns
the equivalent as a readable string

Variable Documentation

§ sd_global

simgrid::sd::Global* sd_global = nullptr