[This is preliminary documentation and is subject to change.]
Scatters data from one process (the "root" process) to all of the processes in a communicator,
with different parts of the data going to different processes. Unlike MPI_Scatter(IntPtr, Int32, Int32, IntPtr, Int32, Int32, Int32, Int32),
different processes may receive different amounts of data.
See Scatter<(Of <(T>)>)(array<T>[]()[], Int32).
Namespace:
MPIAssembly: MPI (in MPI.dll)
Version: 0.8.0.0 (0.8.0.0)
Syntax
| C# |
|---|
public static int MPI_Scatterv( IntPtr sendbuf, int[] sendcounts, int[] displs, int sendtype, IntPtr recvbuf, int recvcount, int recvtype, int root, int comm ) |
| Visual Basic (Declaration) |
|---|
Public Shared Function MPI_Scatterv ( _ sendbuf As IntPtr, _ sendcounts As Integer(), _ displs As Integer(), _ sendtype As Integer, _ recvbuf As IntPtr, _ recvcount As Integer, _ recvtype As Integer, _ root As Integer, _ comm As Integer _ ) As Integer |
| Visual C++ |
|---|
public: static int MPI_Scatterv( IntPtr sendbuf, array<int>^ sendcounts, array<int>^ displs, int sendtype, IntPtr recvbuf, int recvcount, int recvtype, int root, int comm ) |
Parameters
- sendbuf
- Type: System..::.IntPtr
Buffer containing the data to be sent. Only significant at the root process.
- sendcounts
- Type: array<
System..::.Int32
>[]()[]
An array whose ith element contains the number of elements to send to process i. Only significant at the root process.
- displs
- Type: array<
System..::.Int32
>[]()[]
An array whose ith element contains the offset (into sendbuf) if the data to be sent to process i. Only significant at the root process.
- sendtype
- Type: System..::.Int32
The type of data in sendbuf. Only significant at the root process.
- recvbuf
- Type: System..::.IntPtr
A buffer that will receive the calling process's part of the data.
- recvcount
- Type: System..::.Int32
The number of elements to receive.
- recvtype
- Type: System..::.Int32
The type of data to receive.
- root
- Type: System..::.Int32
The rank of the "root" process, which supplies the data.
- comm
- Type: System..::.Int32
The communicator over which the data will be scattered.