SimGrid
|
This section briefly describes the channel notion of MSG (m_channel_t). More...
Functions | |
MSG_error_t | MSG_set_channel_number (int number) |
Set the number of channel in the simulation. | |
int | MSG_get_channel_number (void) |
Return the number of channel in the simulation. |
This section briefly describes the channel notion of MSG (m_channel_t).
For convenience, the simulator provides the notion of channel that is close to the tag notion in MPI. A channel is not a socket. It doesn't need to be opened neither closed. It rather corresponds to the ports opened on the different machines.
MSG_error_t MSG_set_channel_number | ( | int | number | ) |
Set the number of channel in the simulation.
This function has to be called to fix the number of channel in the simulation before creating any host. Indeed, each channel is represented by a different mailbox on each m_host_t. This function can then be called only once. This function takes only one parameter.
number | the number of channel in the simulation. It has to be >0 |
int MSG_get_channel_number | ( | void | ) |
Return the number of channel in the simulation.
This function has to be called once the number of channel is fixed. I can't figure out a reason why anyone would like to call this function but nevermind.
Back to the main Simgrid Documentation page |
The version of Simgrid documented here is v3.6.1. Documentation of other versions can be found in their respective archive files (directory doc/html). |
Generated for SimGridAPI by
![]() |