-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mpiuni: implement check for MPI_IN_PLACE
According to MPI documentation, most MPI routines check sendbuf, but some (MPI_Scatter, MPI_Scatterv and maybe others; note that these are not yet implemented yet in mpiuni) check recvbuf, and some (e.g., MPI_Sendrecv_replace) don't check for MPI_IN_PLACE at all. To make mpiuni respect the MPI standard in this respect, I have added an argument to MPIUNI_Memcpy saying whether to check the source (sendbuf), dest (recvbuf) or neither for equality with MPI_IN_PLACE. (We could probably get away with keeping things simpler by always checking both a and b for equality with MPI_IN_PLACE, but following the MPI standard in this respect seems marginally safer.)
- Loading branch information
Showing
2 changed files
with
37 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters