[mvapich-discuss] Error in MPI_Scatter: 'Buffers must not be aliased'

Mehmet mbelgin at gmail.com
Sat Jun 21 15:56:34 EDT 2014


Hi everyone,

When I try MPI_Scatter on receive/send buffers that are part of the same
array (different locations in the array; not in-place), I get:

[cli_0]: aborting job:
Fatal error in PMPI_Scatter:
Invalid buffer pointer, error stack:
PMPI_Scatter(839): MPI_Scatter(sbuf=0x65cad0, scount=8, MPI_INTEGER,
rbuf=0x65cad0, rcount=8, MPI_INTEGER, root=0, MPI_COMM_WORLD) failed
PMPI_Scatter(757): Buffers must not be aliased

This is with intel 14.0.2 and mvapich2 2.0rc1.

Is this a bug, or a deliberate crash to prevent race conditions? I am
attaching a toy code that demonstrates the problem. The very same code runs
with no errors/warnings using openMPI 1.5.4.

Any thoughts?




PS: I first sent this question using an email that's not subscribed to this
list. If it gets approved, you will see a duplicate. Sorry :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cse.ohio-state.edu/pipermail/mvapich-discuss/attachments/20140621/f5e62481/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MPI_Scatter_Crash.c
Type: text/x-csrc
Size: 1072 bytes
Desc: not available
URL: <http://mailman.cse.ohio-state.edu/pipermail/mvapich-discuss/attachments/20140621/f5e62481/attachment.bin>


More information about the mvapich-discuss mailing list