Fatal error in PMPI_Allgather: Invalid buffer pointer, error stack:
PMPI_Allgather(1093): MPI_Allgather(sbuf=0x2621ed0, scount=1,
MPI_INTEGER, rbuf=0x2621ed0, rcount=1, MPI_INTEGER, MPI_COMM_WORLD)
failed PMPI_Allgather(1026): Buffers must not be aliased
上のようなエラーが出てしまうのですが,原因がわかりません.
何が原因なのでしょうか?
Buffers must not be aliased
と表示されている事から、send buffer(sbuf) と receive buffer(rbuf) のアドレス値が同一(0x2621ed0
)である事が原因と思われます。send と receive で同じバッファ領域を使うことはできない、という事ではないでしょうか。