Function t8_shmem_init

Function Documentation

int t8_shmem_init(sc_MPI_Comm comm)

Initialize shared memory usage for a communicator.

This sets up the intra- and internode communicators.

Note

This function needs to be called to enable shared memory usage for a communicator.

Note

Calling this function multiple times with the same communicator is safe and does not change the behaviour.

Parameters:

comm[in] The MPI Communicator.

Returns:

If the intranode communicator cannot be obtained, return 0. Otherwise return size of intranode communicator.