Fix a few error return paths
This commit was SVN r26233.
Этот коммит содержится в:
родитель
b0c3c18e02
Коммит
d1571b027a
@ -9,6 +9,7 @@
|
|||||||
* University of Stuttgart. All rights reserved.
|
* University of Stuttgart. All rights reserved.
|
||||||
* Copyright (c) 2004-2005 The Regents of the University of California.
|
* Copyright (c) 2004-2005 The Regents of the University of California.
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
|
* Copyright (c) 2012 Oak Ridge National Labs. All rights reserved.
|
||||||
* $COPYRIGHT$
|
* $COPYRIGHT$
|
||||||
*
|
*
|
||||||
* Additional copyrights may follow
|
* Additional copyrights may follow
|
||||||
@ -99,12 +100,12 @@ mca_coll_basic_allgatherv_intra(void *sbuf, int scount,
|
|||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
comm->c_coll.coll_bcast( rbuf, 1 ,newtype,0,comm,
|
err = comm->c_coll.coll_bcast( rbuf, 1 ,newtype,0,comm,
|
||||||
comm->c_coll.coll_bcast_module);
|
comm->c_coll.coll_bcast_module);
|
||||||
|
|
||||||
ompi_datatype_destroy (&newtype);
|
ompi_datatype_destroy (&newtype);
|
||||||
|
|
||||||
return MPI_SUCCESS;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
* University of Stuttgart. All rights reserved.
|
* University of Stuttgart. All rights reserved.
|
||||||
* Copyright (c) 2004-2005 The Regents of the University of California.
|
* Copyright (c) 2004-2005 The Regents of the University of California.
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
|
* Copyright (c) 2012 Oak Ridge National Labs. All rights reserved.
|
||||||
* $COPYRIGHT$
|
* $COPYRIGHT$
|
||||||
*
|
*
|
||||||
* Additional copyrights may follow
|
* Additional copyrights may follow
|
||||||
@ -138,7 +139,7 @@ mca_coll_basic_alltoallw_intra(void *sbuf, int *scounts, int *sdisps,
|
|||||||
|
|
||||||
/* All done */
|
/* All done */
|
||||||
|
|
||||||
return MPI_SUCCESS;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
* University of Stuttgart. All rights reserved.
|
* University of Stuttgart. All rights reserved.
|
||||||
* Copyright (c) 2004-2005 The Regents of the University of California.
|
* Copyright (c) 2004-2005 The Regents of the University of California.
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
|
* Copyright (c) 2012 Oak Ridge National Labs. All rights reserved.
|
||||||
* $COPYRIGHT$
|
* $COPYRIGHT$
|
||||||
*
|
*
|
||||||
* Additional copyrights may follow
|
* Additional copyrights may follow
|
||||||
@ -151,6 +152,9 @@ mca_coll_basic_barrier_intra_log(struct ompi_communicator_t *comm,
|
|||||||
err = MCA_PML_CALL(recv(NULL, 0, MPI_BYTE, peer,
|
err = MCA_PML_CALL(recv(NULL, 0, MPI_BYTE, peer,
|
||||||
MCA_COLL_BASE_TAG_BARRIER,
|
MCA_COLL_BASE_TAG_BARRIER,
|
||||||
comm, MPI_STATUS_IGNORE));
|
comm, MPI_STATUS_IGNORE));
|
||||||
|
if (MPI_SUCCESS != err) {
|
||||||
|
return err;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Send to children. */
|
/* Send to children. */
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
* Copyright (c) 2004-2005 The Regents of the University of California.
|
* Copyright (c) 2004-2005 The Regents of the University of California.
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
* Copyright (c) 2008 Sun Microsystems, Inc. All rights reserved.
|
* Copyright (c) 2008 Sun Microsystems, Inc. All rights reserved.
|
||||||
|
* Copyright (c) 2012 Oak Ridge National Labs. All rights reserved.
|
||||||
* $COPYRIGHT$
|
* $COPYRIGHT$
|
||||||
*
|
*
|
||||||
* Additional copyrights may follow
|
* Additional copyrights may follow
|
||||||
@ -155,6 +156,7 @@ mca_coll_basic_reduce_scatter_intra(void *sbuf, void *rbuf, int *rcounts,
|
|||||||
err = MCA_PML_CALL(recv(recv_buf, count, dtype, rank - 1,
|
err = MCA_PML_CALL(recv(recv_buf, count, dtype, rank - 1,
|
||||||
MCA_COLL_BASE_TAG_REDUCE_SCATTER,
|
MCA_COLL_BASE_TAG_REDUCE_SCATTER,
|
||||||
comm, MPI_STATUS_IGNORE));
|
comm, MPI_STATUS_IGNORE));
|
||||||
|
if (OMPI_SUCCESS != err) goto cleanup;
|
||||||
|
|
||||||
/* integrate their results into our temp results */
|
/* integrate their results into our temp results */
|
||||||
ompi_op_reduce(op, recv_buf, result_buf, count, dtype);
|
ompi_op_reduce(op, recv_buf, result_buf, count, dtype);
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user