[This is preliminary documentation and is subject to change.]

Transmits data from every process in a communicator to every other process in the communicator. Similar to MPI_Allgather(IntPtr, Int32, Int32, IntPtr, Int32, Int32, Int32), except that each process can send different data to every other process. To send a different amount of data to each process, use MPI_Alltoallv(IntPtr, Int32*, Int32*, Int32, IntPtr, Int32*, Int32*, Int32, Int32) or MPI_Alltoallw(IntPtr, Int32*, Int32*, Int32*, IntPtr, Int32*, Int32*, Int32*, Int32). See Alltoall<(Of <(T>)>)(array<T>[]()[]).

Namespace:  MPI
Assembly:  MPI (in MPI)
Version: 0.5.0.0 (0.5.0.0)

Syntax

C#
public static int MPI_Alltoall(
	IntPtr sendbuf,
	int sendcount,
	int sendtype,
	IntPtr recvbuf,
	int recvcount,
	int recvtype,
	int comm
)
Visual Basic (Declaration)
Public Shared Function MPI_Alltoall ( _
	sendbuf As IntPtr, _
	sendcount As Integer, _
	sendtype As Integer, _
	recvbuf As IntPtr, _
	recvcount As Integer, _
	recvtype As Integer, _
	comm As Integer _
) As Integer
Visual C++
public:
static int MPI_Alltoall(
	IntPtr sendbuf, 
	int sendcount, 
	int sendtype, 
	IntPtr recvbuf, 
	int recvcount, 
	int recvtype, 
	int comm
)

Parameters

sendbuf
Type: System..::.IntPtr
Buffer containing the data to send from this process. The ith position in this buffer contains the data that will be sent to the process with rank i.
sendcount
Type: System..::.Int32
The number of elements to send to each process.
sendtype
Type: System..::.Int32
The type of data stored in sendbuf.
recvbuf
Type: System..::.IntPtr
Buffer that will receive data sent from other processes to this process.
recvcount
Type: System..::.Int32
The number of elements that will be received from each process.
recvtype
Type: System..::.Int32
The type of data stored in recvbuf.
comm
Type: System..::.Int32
The communicator used for collective communication.

See Also