Function t8_shmem_array_prefix
Defined in File t8_shmem.h
Function Documentation
-
void t8_shmem_array_prefix(const void *sendbuf, t8_shmem_array_t recvarray, const int count, sc_MPI_Datatype type, sc_MPI_Op op, sc_MPI_Comm comm)
Fill a t8_shmem array with an Allgather of the prefix operation over all processes.
The receive array will be (0, send0, send0 op send1, send0 op send1 op send2, …)
Note
the first entry of recvarray will be set to 0 using memset. The entry can be changed after calling t8_shmem_array_prefix
- Parameters:
sendbuf – [in] The source from this process
recvarray – [inout] The destination shmem array
count – [in] The number of items to gather
type – [in] The type of items to gather
op – [in] The operation to be used
comm – [in] The MPI communicator