SimGrid  3.18
Versatile Simulation of Distributed Systems
surf.hpp File Reference
#include "simgrid/datatypes.h"
#include "simgrid/forward.h"
#include "src/internal_config.h"
#include "xbt/config.h"
#include "xbt/dict.h"
#include "xbt/dynar.h"
#include "xbt/graph.h"
#include "xbt/misc.h"

Classes

struct  surf_model_description
 Resource model description. More...
 

Namespaces

 simgrid
 Alltoall Bruck.
 
 simgrid::surf
 

Typedefs

typedef simgrid::surf::Modelsurf_model_t
 Model datatype. More...
 
typedef simgrid::surf::CpuModelsurf_cpu_model_t
 
typedef simgrid::surf::HostModelsurf_host_model_t
 
typedef simgrid::surf::NetworkModelsurf_network_model_t
 
typedef simgrid::surf::StorageModelsurf_storage_model_t
 
typedef simgrid::surf::Actionsurf_action_t
 Action structure. More...
 
typedef struct surf_model_description s_surf_model_description_t
 

Functions

int find_model_description (s_surf_model_description_t *table, std::string name)
 
void model_help (const char *category, s_surf_model_description_t *table)
 Displays the long description of all registered models, and quit. More...
 
void surf_cpu_model_init_Cas01 ()
 Initializes the CPU model with the model Cas01. More...
 
void surf_cpu_model_init_ti ()
 Initializes the CPU model with trace integration [Deprecated]. More...
 
void surf_network_model_init_SMPI ()
 Same as network model 'LagrangeVelho', only with different correction factors. More...
 
void surf_network_model_init_IB ()
 Same as network model 'LagrangeVelho', only with different correction factors. More...
 
void surf_network_model_init_LegrandVelho ()
 Initializes the platform with the network model 'LegrandVelho'. More...
 
void surf_network_model_init_Constant ()
 Initializes the platform with the network model 'Constant'. More...
 
void surf_network_model_init_CM02 ()
 Initializes the platform with the network model CM02. More...
 
void surf_network_model_init_NS3 ()
 Initializes the platform with the network model NS3. More...
 
void surf_network_model_init_Reno ()
 Initializes the platform with the network model Reno. More...
 
void surf_network_model_init_Reno2 ()
 Initializes the platform with the network model Reno2. More...
 
void surf_network_model_init_Vegas ()
 Initializes the platform with the network model Vegas. More...
 
void surf_storage_model_init_default ()
 The storage model. More...
 
void surf_host_model_init_compound ()
 Initializes the platform with a compound host model. More...
 
void surf_host_model_init_current_default ()
 Initializes the platform with the current best network and cpu models at hand. More...
 
void surf_host_model_init_ptask_L07 ()
 Initializes the platform with the model L07. More...
 
void surf_vm_model_init_HL13 ()
 Initializes the platform with the current best network and cpu models at hand. More...
 
void surf_init (int *argc, char **argv)
 Initialize SURF. More...
 
void surf_presolve ()
 Finish simulation initialization. More...
 
double surf_solve (double max_date)
 Performs a part of the simulation. More...
 
double surf_get_clock ()
 Return the current time. More...
 
void surf_exit ()
 Exit SURF. More...
 
void parse_platform_file (const char *file)
 
void TRACE_surf_action (surf_action_t surf_action, const char *category)
 
void instr_routing_define_callbacks ()
 
int instr_platform_traced ()
 
xbt_graph_t instr_routing_platform_graph ()
 
void instr_routing_platform_graph_export_graphviz (xbt_graph_t g, const char *filename)
 
surf_action_t surf_model_extract_done_action_set (surf_model_t model)
 Pop an action from the done actions set. More...
 
surf_action_t surf_model_extract_failed_action_set (surf_model_t model)
 Pop an action from the failed actions set. More...
 
int surf_model_running_action_set_size (surf_model_t model)
 Get the size of the running action set of a model. More...
 
void surf_cpu_action_set_bound (surf_action_t action, double bound)
 [brief description] More...
 
double surf_network_action_get_latency_limited (surf_action_t action)
 [brief description] More...
 

Variables

double sg_tcp_gamma
 
double sg_latency_factor
 
double sg_bandwidth_factor
 
double sg_weight_S_parameter
 
int sg_network_crosstraffic
 
surf_cpu_model_t surf_cpu_model_pm
 The CPU model object for the physical machine layer. More...
 
surf_cpu_model_t surf_cpu_model_vm
 The CPU model object for the virtual machine layer. More...
 
s_surf_model_description_t surf_optimization_mode_description []
 The list of all available optimization modes (both for cpu and networks). More...
 
s_surf_model_description_t surf_plugin_description []
 The list of all available surf plugins. More...
 
s_surf_model_description_t surf_cpu_model_description []
 The list of all available cpu model models. More...
 
surf_network_model_t surf_network_model
 The network model. More...
 
s_surf_model_description_t surf_network_model_description []
 The list of all available network model models. More...
 
s_surf_model_description_t surf_storage_model_description []
 The list of all available storage modes. More...
 
surf_storage_model_t surf_storage_model
 
surf_host_model_t surf_host_model
 The host model. More...
 
s_surf_model_description_t surf_host_model_description []
 The list of all available host model models. More...
 

Typedef Documentation

◆ surf_cpu_model_t

◆ surf_host_model_t

◆ surf_network_model_t

◆ surf_storage_model_t

◆ s_surf_model_description_t

Function Documentation

◆ find_model_description()

int find_model_description ( s_surf_model_description_t table,
std::string  name 
)

◆ model_help()

void model_help ( const char *  category,
s_surf_model_description_t table 
)

Displays the long description of all registered models, and quit.

◆ parse_platform_file()

void parse_platform_file ( const char *  file)

◆ TRACE_surf_action()

void TRACE_surf_action ( surf_action_t  surf_action,
const char *  category 
)

◆ instr_routing_define_callbacks()

void instr_routing_define_callbacks ( )

◆ instr_platform_traced()

int instr_platform_traced ( )

◆ instr_routing_platform_graph()

xbt_graph_t instr_routing_platform_graph ( )

◆ instr_routing_platform_graph_export_graphviz()

void instr_routing_platform_graph_export_graphviz ( xbt_graph_t  g,
const char *  filename 
)

Variable Documentation

◆ sg_tcp_gamma

double sg_tcp_gamma

◆ sg_latency_factor

double sg_latency_factor

◆ sg_bandwidth_factor

double sg_bandwidth_factor

◆ sg_weight_S_parameter

double sg_weight_S_parameter

◆ sg_network_crosstraffic

int sg_network_crosstraffic

◆ surf_plugin_description

s_surf_model_description_t surf_plugin_description[]

The list of all available surf plugins.

◆ surf_storage_model

surf_storage_model_t surf_storage_model