Send a message to a particular processor.
Namespace:
MPIAssembly: MPI (in MPI.dll)
Version: 1.0.0.0 (1.0.0.0)
Syntax
| C# |
|---|
public void Send<T>( T value, int dest, int tag ) |
| Visual Basic (Declaration) |
|---|
Public Sub Send(Of T) ( _ value As T, _ dest As Integer, _ tag As Integer _ ) |
| Visual C++ |
|---|
public: generic<typename T> void Send( T value, int dest, int tag ) |
Parameters
- value
- Type: T
The value that will be transmitted with the message.
- dest
- Type: System..::.Int32
The rank of the process that will receive this message. This must be a value in [0, Size-1), but it should not be equal to Rank.
- tag
- Type: System..::.Int32
A message "tag" that identifies this particular kind of message. The receive must use the same message tag to receive this message.
Type Parameters
- T
- The type of the value to be sent. This type must be serializable.
Remarks
The basic Send operation will block until this message data has been transferred from value.
This might mean that the Send operation will return immediately, before the receiver has actually received
the data. However, it is also possible that Send won't return until it matches a Receive<(Of <(T>)>)(Int32, Int32)
operation. Thus, the dest parameter should not be equal to Rank, because a send-to-self
operation might never complete.