-
Notifications
You must be signed in to change notification settings - Fork 936
Closed
Description
This is a Github version of https://www.mail-archive.com/devel@lists.open-mpi.org//msg19753.html
There is a regression in the use of neighborhood collectives with empty topologies.
The following program:
#include <mpi.h>
#include <stdio.h>
int main(int argc, char** argv) {
MPI_Init(&argc, &argv);
int n = 1;
int sources[1] = {0};
int degrees[1] = {0};
int destinations[1];
int reorder = 0;
MPI_Comm graph_comm;
MPI_Dist_graph_create(MPI_COMM_WORLD, n, sources, degrees, destinations,
MPI_UNWEIGHTED, MPI_INFO_NULL, reorder, &graph_comm);
int sendbuf[1];
int recvbuf[1];
MPI_Neighbor_alltoall(sendbuf, 1, MPI_INT,
recvbuf, 1, MPI_INT, graph_comm);
MPI_Comm_free(&graph_comm);
MPI_Finalize();
}
produces errors like these when compiled against OpenMPI at
versions v2.0.1 and a49422f, but runs okay at version v1.10.4:
[Dans-MacBook-Air:52159] *** An error occurred in MPI_Neighbor_alltoall
[Dans-MacBook-Air:52159] *** reported by process [2935488513,0]
[Dans-MacBook-Air:52159] *** on communicator MPI COMMUNICATOR 3 CREATE FROM 0
[Dans-MacBook-Air:52159] *** MPI_ERR_INTERN: internal error
[Dans-MacBook-Air:52159] *** MPI_ERRORS_ARE_FATAL (processes in this communicator will now abort,
[Dans-MacBook-Air:52159] *** and potentially your MPI job)