network.hh File Reference

Go to the source code of this file.

Classes

class  comm_matrix_t
 Communication matrix. More...
class  network_t
 Network communication support class. More...

Defines

#define OPT_STATS
#define OPT_STATS_MPI_RATE
#define STATS_INTERVAL   3.0

Typedefs

typedef auto_ptr< comm_matrix_tpcomm_matrix_t
 Communication matrix auto pointer.

Variables

const int NET_ERR_ABORT_FAILED = 13
 Network abort function failed.
const int NET_ERR_ALLGATHER_FAILED = 15
 Function allgather failed.
const int NET_ERR_ALREADY_INITIALIZED = 1
 Trying to initialize, when network is already initialized.
const int NET_ERR_BARRIER_FAILED = 12
 Barrier function failed.
const int NET_ERR_FINALIZATION_FAILED = 4
 Finalization of network failed.
const int NET_ERR_GATHER_FAILED = 14
 Function gather failed.
const int NET_ERR_GET_MSG_SIZE_FAILED = 11
 Getting message size from network failed.
const int NET_ERR_INITIALIZATION_FAILED = 3
 Initialization of network failed.
const int NET_ERR_INVALID_DESTINATION = 6
 Trying to send message to or aquire information about a non-existing destination.
const int NET_ERR_INVALID_MSG_SIZE = 5
 Trying to send message whose size exceeds the buffer size.
const int NET_ERR_INVALID_SOURCE = 7
 Trying to get message from or aquire information about a non-existing source.
const int NET_ERR_INVALID_WORKSTATION_NUMBER = 16
 Trying aquire information about a non-existing workstation.
const int NET_ERR_MSG_PROBE_FAILED = 9
 Probe for messages failed.
const ERR_triplet_t net_err_msgs [17]
 Array of error descriptions.
const int NET_ERR_NOT_INITIALIZED = 2
 Trying to do something that requires initialized network, when network is not initialized.
const int NET_ERR_RECEIVE_MSG_FAILED = 10
 Receiving of message failed.
const int NET_ERR_SEND_MSG_FAILED = 8
 Sending of message failed.
const int NET_NO_ERROR = 0
 Everything's ok.
const int NET_TAG_NORMAL = 0
const int NET_TAG_URGENT = 1
const int NETWORK_ERR_TYPE = 1729
 Identifier of exceptions raised by network_t.


Detailed Description

Network support unit header

Typedef Documentation

typedef auto_ptr<comm_matrix_t> pcomm_matrix_t

Communication matrix auto pointer.

Points to communication matrix. Variables of this type are outputs of some statistical methods of network_t. The only important thing you need to know about auto pointers is that if auto pointer is destroyed (or rewritten), then the object it points to is also destroyed (unless some other pointer points to the object).


Variable Documentation

const int NET_TAG_NORMAL = 0

MPI tag for normal messages
This tag is used internally by network_t and has nothing to do with tags passed
as parameters to network_t methods. Programmers using network_t do not have direct
access to MPI, hence this constant is irrelevant to them.

Referenced by network_t::flush_buffer().

const int NET_TAG_URGENT = 1

MPI tag for urgent messages
This tag is used internally by network_t and has nothing to do with tags passed
as parameters to network_t methods. Programmers using network_t do not have direct
access to MPI, hence this constant is irrelevant to them.


Reference Manual for Library, 2006 developed in ParaDiSe laboratory, Faculty of Informatics, Masaryk University