Function t8_shmem_array_init(t8_shmem_array_t *, size_t, size_t, sc_MPI_Comm)
Defined in File t8_shmem.c
Function Documentation
-
void t8_shmem_array_init(t8_shmem_array_t *parray, size_t elem_size, size_t elem_count, sc_MPI_Comm comm)
Initialize and allocate a shared memory array structure.
- Parameters:
parray – [inout] On input this pointer must be non-NULL. On return this pointer is set to the new t8_shmem_array.
elem_size – [in] The size in bytes of an array element.
elem_count – [in] The total number of elements to allocate.
comm – [in] The MPI communicator to be associated with the shmem_array. If not set, the shared memory type will be set to T8_SHMEM_BEST_TYPE.