Put in a check to ensure the root is valid (all other rooted
operations have this; we somehow missed this for intracomms on reduce, and it bit me this morning ;-) ) This commit was SVN r7612.
Этот коммит содержится в:
родитель
3b4a134a24
Коммит
94bab558dd
@ -68,6 +68,14 @@ int MPI_Reduce(void *sendbuf, void *recvbuf, int count,
|
|||||||
return OMPI_ERRHANDLER_INVOKE(comm, MPI_ERR_ROOT, FUNC_NAME);
|
return OMPI_ERRHANDLER_INVOKE(comm, MPI_ERR_ROOT, FUNC_NAME);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Intracommunicator errors */
|
||||||
|
|
||||||
|
else {
|
||||||
|
if (root < 0 || root >= ompi_comm_size(comm)) {
|
||||||
|
return OMPI_ERRHANDLER_INVOKE(comm, MPI_ERR_ROOT, FUNC_NAME);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* MPI-1, p114, says that each process must supply at least
|
/* MPI-1, p114, says that each process must supply at least
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user