Inside the Message Passing Interface by Alexander Supalov

Inside the Message Passing Interface by Alexander Supalov

Author:Alexander Supalov [Неизв.]
Language: eng
Format: epub
Publisher: De Gruyter
Published: 2018-12-24T20:00:00+00:00


–First, it needs to copy the contents of the send buffer to the receive buffer if called on a communicator with only one process. In this, the MPI_Gather() is similar to the MPI_Reduce(), with the added complexity of using two buffer descriptions rather than one. Hence, we need a new function, called _mpi_type_copy2(), to cover this scenario. Note that here we need to check all arguments, because we cannot rely on any underlying MPI function to do this for us.

–Second, in case of more than one process, the MPI_Gather() on the root process again needs to copy its send buffer into the portion of the receive buffer corresponding to the root process. The aforementioned function _mpi_type_copy2() helps us out here, too.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.