Fixes *alltoall* collectives at top
- fix bugs - silent warnings cmr=v1.8.2:ticket=4651:reviewer=bosilca This commit was SVN r31831. The following Trac tickets were found above: Ticket 4651 --> https://svn.open-mpi.org/trac/ompi/ticket/4651
Этот коммит содержится в:
родитель
ef4548a215
Коммит
c496131eef
@ -98,7 +98,7 @@ int MPI_Alltoall(const void *sendbuf, int sendcount, MPI_Datatype sendtype,
|
|||||||
ompi_datatype_type_size(recvtype, &recvtype_size);
|
ompi_datatype_type_size(recvtype, &recvtype_size);
|
||||||
if (((MPI_IN_PLACE == sendbuf) ||
|
if (((MPI_IN_PLACE == sendbuf) ||
|
||||||
(0 == sendcount) || (0 == sendtype_size)) &&
|
(0 == sendcount) || (0 == sendtype_size)) &&
|
||||||
(0 == recvcount) || (0 == recvtype_size)) {
|
((0 == recvcount) || (0 == recvtype_size))) {
|
||||||
return MPI_SUCCESS;
|
return MPI_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -50,7 +50,6 @@ int MPI_Ialltoallv(const void *sendbuf, const int sendcounts[], const int sdispl
|
|||||||
{
|
{
|
||||||
int i, size, err;
|
int i, size, err;
|
||||||
size_t sendtype_size, recvtype_size;
|
size_t sendtype_size, recvtype_size;
|
||||||
bool zerosend=true, zerorecv=true;
|
|
||||||
|
|
||||||
MEMCHECKER(
|
MEMCHECKER(
|
||||||
ptrdiff_t recv_ext;
|
ptrdiff_t recv_ext;
|
||||||
|
@ -50,7 +50,6 @@ int MPI_Ialltoallw(const void *sendbuf, const int sendcounts[], const int sdispl
|
|||||||
{
|
{
|
||||||
int i, size, err;
|
int i, size, err;
|
||||||
size_t sendtype_size, recvtype_size;
|
size_t sendtype_size, recvtype_size;
|
||||||
bool zerosend=true, zerorecv=true;
|
|
||||||
|
|
||||||
MEMCHECKER(
|
MEMCHECKER(
|
||||||
ptrdiff_t recv_ext;
|
ptrdiff_t recv_ext;
|
||||||
|
@ -50,7 +50,6 @@ int MPI_Ineighbor_alltoallv(const void *sendbuf, const int sendcounts[], const i
|
|||||||
{
|
{
|
||||||
int i, size, err;
|
int i, size, err;
|
||||||
size_t sendtype_size, recvtype_size;
|
size_t sendtype_size, recvtype_size;
|
||||||
bool zerosend=true, zerorecv=true;
|
|
||||||
|
|
||||||
MEMCHECKER(
|
MEMCHECKER(
|
||||||
ptrdiff_t recv_ext;
|
ptrdiff_t recv_ext;
|
||||||
|
@ -50,7 +50,6 @@ int MPI_Ineighbor_alltoallw(const void *sendbuf, const int sendcounts[], const M
|
|||||||
{
|
{
|
||||||
int i, size, err;
|
int i, size, err;
|
||||||
size_t sendtype_size, recvtype_size;
|
size_t sendtype_size, recvtype_size;
|
||||||
bool zerosend=true, zerorecv=true;
|
|
||||||
|
|
||||||
MEMCHECKER(
|
MEMCHECKER(
|
||||||
ptrdiff_t recv_ext;
|
ptrdiff_t recv_ext;
|
||||||
|
@ -98,8 +98,8 @@ int MPI_Neighbor_alltoall(const void *sendbuf, int sendcount, MPI_Datatype sendt
|
|||||||
ompi_datatype_type_size(sendtype, &sendtype_size);
|
ompi_datatype_type_size(sendtype, &sendtype_size);
|
||||||
ompi_datatype_type_size(recvtype, &recvtype_size);
|
ompi_datatype_type_size(recvtype, &recvtype_size);
|
||||||
if (((MPI_IN_PLACE == sendbuf) ||
|
if (((MPI_IN_PLACE == sendbuf) ||
|
||||||
(0 == sendcount || 0 == sendtype_size)) &&
|
(0 == sendcount) || (0 == sendtype_size)) &&
|
||||||
(0 == recvcount || 0 == recvtype_size)) {
|
((0 == recvcount) || 0 == (recvtype_size))) {
|
||||||
return MPI_SUCCESS;
|
return MPI_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Загрузка…
Ссылка в новой задаче
Block a user