#include "ross-types.h"
#include "tw-opts.h"
#include <mpi.h>
Go to the source code of this file.
◆ tw_comm_set()
void tw_comm_set |
( |
MPI_Comm | comm | ) |
|
This function should be called before tw_net_init.
- Parameters
-
[in] | comm | Custom MPI communicator for setting MPI_COMM_ROSS |
Definition at line 59 of file network-mpi.c.
◆ tw_net_abort()
void tw_net_abort |
( |
void | | ) |
|
Aborts the entire simulation when a grave error is found.
Definition at line 147 of file network-mpi.c.
◆ tw_net_barrier()
void tw_net_barrier |
( |
void | | ) |
|
|
extern |
Block until all nodes call the barrier.
Definition at line 175 of file network-mpi.c.
◆ tw_net_cancel()
- Parameters
-
[in] | e | remote event to be canceled |
Definition at line 636 of file network-mpi.c.
◆ tw_net_init()
const tw_optdef * tw_net_init |
( |
int * | argc, |
|
|
char *** | argv ) |
argc and argv are pointers to the original command line; the network library may edit these before the option parser sees them allowing for network implementation specific argument handling to occur.
It's possible for a model to init MPI itself, as this function will first check if MPI is already initialized before attempting to call MPI_Init().
This function also sets the global variables g_tw_masternode and g_tw_mynode.
- Parameters
-
[in] | argc | Pointer to command line arg count |
[in] | argv | Pointer to command line args |
- Returns
- tw_optdef array to be included in overall process command line argument display and parsing; NULL may be returned to indicate the implementation has no options it wants included.
Definition at line 66 of file network-mpi.c.
◆ tw_net_minimum()
- Returns
- minimum timestamp for this PE's network buffers
Definition at line 182 of file network-mpi.c.
◆ tw_net_read()
void tw_net_read |
( |
tw_pe * | me | ) |
|
|
extern |
◆ tw_net_send()
- Parameters
-
[in] | e | remote event to be sent |
Definition at line 619 of file network-mpi.c.
◆ tw_net_start()
void tw_net_start |
( |
void | | ) |
|
Makes calls to initialize the PE (g_tw_pe), create the hash/AVL tree (for optimistic modes), and queues for posted sends/recvs. Also pre-posts MPI Irecvs operations.
Definition at line 109 of file network-mpi.c.
◆ tw_net_statistics()
- Attention
- Notice that the MPI_Reduce "count" parameter is greater than one. We are reducing on multiple variables simultaneously so if you change this function or the struct tw_statistics, you must update the other.
Function to reduce all the statistics for output.
tw_net_statistics
- Attention
- Notice that the MPI_Reduce "count" parameter is greater than one. We are reducing on multiple variables simultaneously so if you change this function or the struct tw_statistics, you must update the other.
Definition at line 697 of file network-mpi.c.
◆ tw_net_stop()
void tw_net_stop |
( |
void | | ) |
|
Checks to see if custom communicator was used. If not, finalizes MPI. Otherwise, the application is expected to finalize MPI itself.
Definition at line 154 of file network-mpi.c.
◆ tw_nnodes()
unsigned tw_nnodes |
( |
void | | ) |
|
|
extern |
Obtain the total number of PEs executing the simulation.
- Returns
- number of ROSS PEs/MPI world size
Definition at line 103 of file network-mpi.c.
Referenced by tw_net_start().
◆ MPI_COMM_ROSS