 |
The ROme OpTimistic Simulator
3.0.0
A General-Purpose Multithreaded Parallel/Distributed Simulation Platform
|
double simtime_t
The type used to represent logical time in the simulation.
void mpi_remote_msg_handle(void)
Empties the queue of incoming MPI messages, doing the right thing for each one of them.
void mpi_blocking_data_send(const void *data, int data_size, nid_t dest)
Sends a byte buffer to another node.
msg_ctrl_tag
A control message MPI tag value.
@ MSG_CTRL_GVT_DONE
Used by slaves to signal their completion of the gvt protocol.
@ MSG_CTRL_GVT_START
Used by the master to start a new gvt reduction operation.
void mpi_control_msg_send_to(enum msg_ctrl_tag ctrl, nid_t dest)
Sends a platform control message to a specific nodes.
int nid_t
Used to identify MPI nodes in a distributed environment.
void mpi_node_barrier(void)
A node barrier.
A model simulation message.
Message management functions.
lp_id_t dest
The id of the recipient LP.
void mpi_reduce_min(simtime_t *node_min_p)
Computes the min-reduction operation across all nodes.
void mpi_control_msg_broadcast(enum msg_ctrl_tag ctrl)
Sends a platform control message to all the other nodes.
bool mpi_reduce_sum_scatter_done(void)
Checks if a previous mpi_reduce_sum_scatter() operation has completed.
@ MSG_CTRL_TERMINATION
Used in broadcast to signal that local LPs can terminate.
bool mpi_reduce_min_done(void)
Checks if a previous mpi_reduce_min() operation has completed.
void mpi_reduce_sum_scatter(const unsigned node_vals[n_nodes], unsigned *result)
Computes the sum-reduction-scatter operation across all nodes.
void mpi_global_fini(void)
Finalizes the MPI environment.
void mpi_remote_msg_send(struct lp_msg *msg, nid_t dest_nid)
Sends a model message to a LP residing on another node.
void * mpi_blocking_data_rcv(int *data_size_p, nid_t src)
Receives a byte buffer from another node.
void mpi_remote_anti_msg_send(struct lp_msg *msg, nid_t dest_nid)
Sends a model anti-message to a LP residing on another node.
void mpi_global_init(int *argc_p, char ***argv_p)
Initializes the MPI environment.