ompi_mpi_abort had one extra argument that was never used. Clean it up.
This commit was SVN r32124.
Этот коммит содержится в:
родитель
2883adcdf3
Коммит
843ef1fcb0
@ -3,7 +3,7 @@
|
||||
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
|
||||
* University Research and Technology
|
||||
* Corporation. All rights reserved.
|
||||
* Copyright (c) 2004-2011 The University of Tennessee and The University
|
||||
* Copyright (c) 2004-2014 The University of Tennessee and The University
|
||||
* of Tennessee Research Foundation. All rights
|
||||
* reserved.
|
||||
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
||||
@ -225,7 +225,7 @@ int ompi_errhandler_runtime_callback(opal_pointer_array_t *errors) {
|
||||
errcode = err->errcode;
|
||||
}
|
||||
|
||||
ompi_mpi_abort(MPI_COMM_WORLD, errcode, false);
|
||||
ompi_mpi_abort(MPI_COMM_WORLD, errcode);
|
||||
return OMPI_SUCCESS;
|
||||
}
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
|
||||
* University Research and Technology
|
||||
* Corporation. All rights reserved.
|
||||
* Copyright (c) 2004-2005 The University of Tennessee and The University
|
||||
* Copyright (c) 2004-2014 The University of Tennessee and The University
|
||||
* of Tennessee Research Foundation. All rights
|
||||
* reserved.
|
||||
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
||||
@ -336,15 +336,17 @@ static void backend_fatal(char *type, struct ompi_communicator_t *comm,
|
||||
backend_fatal_no_aggregate(type, comm, name, error_code, arglist);
|
||||
}
|
||||
|
||||
/* Should we do something more intelligent than just using
|
||||
COMM_SELF? */
|
||||
/* In most instances the communicator will be valid. If not, we are either early in
|
||||
* the initialization or we are dealing with a window. Thus, it is good enough to abort
|
||||
* on MPI_COMM_SELF, the error will propagate.
|
||||
*/
|
||||
if (comm == NULL) {
|
||||
comm = &ompi_mpi_comm_self.comm;
|
||||
}
|
||||
|
||||
if (NULL != error_code) {
|
||||
ompi_mpi_abort(comm, *error_code, false);
|
||||
ompi_mpi_abort(comm, *error_code);
|
||||
} else {
|
||||
ompi_mpi_abort(comm, 1, false);
|
||||
ompi_mpi_abort(comm, 1);
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,10 @@
|
||||
/*
|
||||
* Copyright (c) 2009-2012 Oak Ridge National Laboratory. All rights reserved.
|
||||
* Copyright (c) 2009-2012 Mellanox Technologies. All rights reserved.
|
||||
* Copyright (c) 2012 Cisco Systems, Inc. All rights reserved.
|
||||
* Copyright (c) 2012 Cisco Systems, Inc. All rights reserved.
|
||||
* Copyright (c) 2014 The University of Tennessee and The University
|
||||
* of Tennessee Research Foundation. All rights
|
||||
* reserved.
|
||||
* $COPYRIGHT$
|
||||
*
|
||||
* Additional copyrights may follow
|
||||
@ -773,7 +776,7 @@ mca_bcol_iboffload_free_tasks_frags_resources(
|
||||
static void fatal_error(char *mesg)
|
||||
{
|
||||
IBOFFLOAD_ERROR(("FATAL ERROR: %s", mesg));
|
||||
ompi_mpi_abort(&ompi_mpi_comm_world.comm, MPI_ERR_INTERN, true);
|
||||
ompi_mpi_abort(&ompi_mpi_comm_world.comm, MPI_ERR_INTERN);
|
||||
}
|
||||
|
||||
#define RELEASE_COLLFRAG(cf) \
|
||||
|
@ -4,6 +4,9 @@
|
||||
* Copyright (c) 2009-2012 Mellanox Technologies. All rights reserved.
|
||||
* Copyright (c) 2013-2014 Los Alamos National Security, LLC. All rights
|
||||
* reserved.
|
||||
* Copyright (c) 2014 The University of Tennessee and The University
|
||||
* of Tennessee Research Foundation. All rights
|
||||
* reserved.
|
||||
* $COPYRIGHT$
|
||||
*
|
||||
* Additional copyrights may follow
|
||||
@ -97,7 +100,7 @@ void mca_coll_ml_abort_ml(char *message)
|
||||
{
|
||||
ML_ERROR(("ML Collective FATAL ERROR: %s", message));
|
||||
/* shutdown the MPI */
|
||||
ompi_mpi_abort(&ompi_mpi_comm_world.comm, MPI_ERR_INTERN, true);
|
||||
ompi_mpi_abort(&ompi_mpi_comm_world.comm, MPI_ERR_INTERN);
|
||||
}
|
||||
/*
|
||||
* progress function
|
||||
|
@ -4,6 +4,9 @@
|
||||
* Copyright (c) 2009-2012 Mellanox Technologies. All rights reserved.
|
||||
* Copyright (c) 2014 Los Alamos National Security, LLC. All rights
|
||||
* reserved.
|
||||
* Copyright (c) 2014 The University of Tennessee and The University
|
||||
* of Tennessee Research Foundation. All rights
|
||||
* reserved.
|
||||
* $COPYRIGHT$
|
||||
*
|
||||
* Additional copyrights may follow
|
||||
@ -70,7 +73,7 @@ int mca_coll_ml_check_if_bcol_is_used(const char *bcol_name, const mca_coll_ml_m
|
||||
ranks_in_comm = (int *) malloc(comm_size * sizeof(int));
|
||||
if (OPAL_UNLIKELY(NULL == ranks_in_comm)) {
|
||||
ML_ERROR(("Memory allocation failed."));
|
||||
ompi_mpi_abort(&ompi_mpi_comm_world.comm, MPI_ERR_NO_MEM, true);
|
||||
ompi_mpi_abort(&ompi_mpi_comm_world.comm, MPI_ERR_NO_MEM);
|
||||
/* not reached but causes a clang warning to not return here */
|
||||
return OMPI_ERR_OUT_OF_RESOURCE;
|
||||
}
|
||||
@ -107,7 +110,7 @@ int mca_coll_ml_check_if_bcol_is_used(const char *bcol_name, const mca_coll_ml_m
|
||||
|
||||
if (OPAL_UNLIKELY(OMPI_SUCCESS != rc)) {
|
||||
ML_ERROR(("comm_allreduce_pml failed."));
|
||||
ompi_mpi_abort(&ompi_mpi_comm_world.comm, MPI_ERR_OP, true);
|
||||
ompi_mpi_abort(&ompi_mpi_comm_world.comm, MPI_ERR_OP);
|
||||
}
|
||||
|
||||
free(ranks_in_comm);
|
||||
|
@ -176,7 +176,7 @@ recv_request_pml_complete(mca_pml_bfo_recv_request_t *recvreq)
|
||||
OPAL_THREAD_LOCK(&ompi_request_lock);
|
||||
if(true == recvreq->req_recv.req_base.req_free_called) {
|
||||
if( MPI_SUCCESS != recvreq->req_recv.req_base.req_ompi.req_status.MPI_ERROR ) {
|
||||
ompi_mpi_abort(&ompi_mpi_comm_world.comm, MPI_ERR_REQUEST, true);
|
||||
ompi_mpi_abort(&ompi_mpi_comm_world.comm, MPI_ERR_REQUEST);
|
||||
}
|
||||
MCA_PML_BFO_RECV_REQUEST_RETURN(recvreq);
|
||||
} else {
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
|
||||
* University Research and Technology
|
||||
* Corporation. All rights reserved.
|
||||
* Copyright (c) 2004-2013 The University of Tennessee and The University
|
||||
* Copyright (c) 2004-2014 The University of Tennessee and The University
|
||||
* of Tennessee Research Foundation. All rights
|
||||
* reserved.
|
||||
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
||||
@ -249,7 +249,7 @@ send_request_pml_complete(mca_pml_bfo_send_request_t *sendreq)
|
||||
MCA_PML_BFO_SEND_REQUEST_MPI_COMPLETE(sendreq, true);
|
||||
} else {
|
||||
if( MPI_SUCCESS != sendreq->req_send.req_base.req_ompi.req_status.MPI_ERROR ) {
|
||||
ompi_mpi_abort(&ompi_mpi_comm_world.comm, MPI_ERR_REQUEST, true);
|
||||
ompi_mpi_abort(&ompi_mpi_comm_world.comm, MPI_ERR_REQUEST);
|
||||
}
|
||||
}
|
||||
sendreq->req_send.req_base.req_pml_complete = true;
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
|
||||
* University Research and Technology
|
||||
* Corporation. All rights reserved.
|
||||
* Copyright (c) 2004-2013 The University of Tennessee and The University
|
||||
* Copyright (c) 2004-2014 The University of Tennessee and The University
|
||||
* of Tennessee Research Foundation. All rights
|
||||
* reserved.
|
||||
* Copyright (c) 2004-2007 High Performance Computing Center Stuttgart,
|
||||
@ -164,7 +164,7 @@ recv_request_pml_complete(mca_pml_ob1_recv_request_t *recvreq)
|
||||
OPAL_THREAD_LOCK(&ompi_request_lock);
|
||||
if(true == recvreq->req_recv.req_base.req_free_called) {
|
||||
if( MPI_SUCCESS != recvreq->req_recv.req_base.req_ompi.req_status.MPI_ERROR ) {
|
||||
ompi_mpi_abort(&ompi_mpi_comm_world.comm, MPI_ERR_REQUEST, true);
|
||||
ompi_mpi_abort(&ompi_mpi_comm_world.comm, MPI_ERR_REQUEST);
|
||||
}
|
||||
MCA_PML_OB1_RECV_REQUEST_RETURN(recvreq);
|
||||
} else {
|
||||
|
@ -3,7 +3,7 @@
|
||||
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
|
||||
* University Research and Technology
|
||||
* Corporation. All rights reserved.
|
||||
* Copyright (c) 2004-2013 The University of Tennessee and The University
|
||||
* Copyright (c) 2004-2014 The University of Tennessee and The University
|
||||
* of Tennessee Research Foundation. All rights
|
||||
* reserved.
|
||||
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
||||
@ -258,7 +258,7 @@ send_request_pml_complete(mca_pml_ob1_send_request_t *sendreq)
|
||||
MCA_PML_OB1_SEND_REQUEST_MPI_COMPLETE(sendreq, true);
|
||||
} else {
|
||||
if( MPI_SUCCESS != sendreq->req_send.req_base.req_ompi.req_status.MPI_ERROR ) {
|
||||
ompi_mpi_abort(&ompi_mpi_comm_world.comm, MPI_ERR_REQUEST, true);
|
||||
ompi_mpi_abort(&ompi_mpi_comm_world.comm, MPI_ERR_REQUEST);
|
||||
}
|
||||
}
|
||||
sendreq->req_send.req_base.req_pml_complete = true;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2004-2007 The Trustees of the University of Tennessee.
|
||||
* Copyright (c) 2004-2014 The Trustees of the University of Tennessee.
|
||||
* All rights reserved.
|
||||
* $COPYRIGHT$
|
||||
*
|
||||
@ -54,7 +54,7 @@ static void sb_mmap_alloc(void)
|
||||
V_OUTPUT_ERR("pml_v: vprotocol_pessimist: sender_based_alloc: ftruncate: %s",
|
||||
strerror(errno));
|
||||
close(sb.sb_fd);
|
||||
ompi_mpi_abort(MPI_COMM_NULL, MPI_ERR_NO_SPACE, false);
|
||||
ompi_mpi_abort(MPI_COMM_NULL, MPI_ERR_NO_SPACE);
|
||||
}
|
||||
sb.sb_addr = (uintptr_t) mmap((void *) sb.sb_addr, sb.sb_length,
|
||||
PROT_WRITE | PROT_READ,
|
||||
@ -65,7 +65,7 @@ static void sb_mmap_alloc(void)
|
||||
V_OUTPUT_ERR("pml_v: vprotocol_pessimist: sender_based_alloc: mmap: %s",
|
||||
strerror(errno));
|
||||
close(sb.sb_fd);
|
||||
ompi_mpi_abort(MPI_COMM_NULL, MPI_ERR_NO_SPACE, false);
|
||||
ompi_mpi_abort(MPI_COMM_NULL, MPI_ERR_NO_SPACE);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Copyright (c) 2004-2007 The Trustees of Indiana University and Indiana
|
||||
* University Research and Technology
|
||||
* Corporation. All rights reserved.
|
||||
* Copyright (c) 2004-2005 The University of Tennessee and The University
|
||||
* Copyright (c) 2004-2014 The University of Tennessee and The University
|
||||
* of Tennessee Research Foundation. All rights
|
||||
* reserved.
|
||||
* Copyright (c) 2004-2008 High Performance Computing Center Stuttgart,
|
||||
@ -56,5 +56,5 @@ int MPI_Abort(MPI_Comm comm, int errorcode)
|
||||
ompi_comm_rank(comm),
|
||||
('\0' != comm->c_name[0]) ? comm->c_name : "<Unknown>",
|
||||
errorcode);
|
||||
return ompi_mpi_abort(comm, errorcode, true);
|
||||
return ompi_mpi_abort(comm, errorcode);
|
||||
}
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
|
||||
* University Research and Technology
|
||||
* Corporation. All rights reserved.
|
||||
* Copyright (c) 2004-2008 The University of Tennessee and The University
|
||||
* Copyright (c) 2004-2014 The University of Tennessee and The University
|
||||
* of Tennessee Research Foundation. All rights
|
||||
* reserved.
|
||||
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
||||
@ -186,7 +186,7 @@ int ompi_mpi_finalize(void);
|
||||
* Abort the processes of comm
|
||||
*/
|
||||
OMPI_DECLSPEC int ompi_mpi_abort(struct ompi_communicator_t* comm,
|
||||
int errcode, bool kill_remote_of_intercomm);
|
||||
int errcode);
|
||||
|
||||
/**
|
||||
* Do a preconnect of MPI connections (i.e., force connections to
|
||||
|
@ -45,8 +45,7 @@ static bool have_been_invoked = false;
|
||||
|
||||
int
|
||||
ompi_mpi_abort(struct ompi_communicator_t* comm,
|
||||
int errcode,
|
||||
bool kill_remote_of_intercomm)
|
||||
int errcode)
|
||||
{
|
||||
int count = 0, i, ret;
|
||||
char *msg, *host, hostname[MAXHOSTNAMELEN];
|
||||
@ -141,11 +140,9 @@ ompi_mpi_abort(struct ompi_communicator_t* comm,
|
||||
that we abort the remote procs, then do that as well. */
|
||||
nabort_procs = ompi_comm_size(comm);
|
||||
|
||||
if (kill_remote_of_intercomm) {
|
||||
/* ompi_comm_remote_size() returns 0 if not an intercomm, so
|
||||
this is cool */
|
||||
nabort_procs += ompi_comm_remote_size(comm);
|
||||
}
|
||||
/* ompi_comm_remote_size() returns 0 if not an intercomm, so
|
||||
this is cool */
|
||||
nabort_procs += ompi_comm_remote_size(comm);
|
||||
|
||||
abort_procs = (ompi_process_name_t*)malloc(sizeof(ompi_process_name_t) * nabort_procs);
|
||||
if (NULL == abort_procs) {
|
||||
@ -167,18 +164,16 @@ ompi_mpi_abort(struct ompi_communicator_t* comm,
|
||||
}
|
||||
|
||||
/* if requested, kill off remote procs too */
|
||||
if (kill_remote_of_intercomm) {
|
||||
for (i = 0 ; i < ompi_comm_remote_size(comm) ; ++i) {
|
||||
if (OPAL_EQUAL != ompi_rte_compare_name_fields(OMPI_RTE_CMP_ALL,
|
||||
&comm->c_remote_group->grp_proc_pointers[i]->proc_name,
|
||||
OMPI_PROC_MY_NAME)) {
|
||||
assert(count <= nabort_procs);
|
||||
abort_procs[count++] =
|
||||
comm->c_remote_group->grp_proc_pointers[i]->proc_name;
|
||||
} else {
|
||||
/* don't terminate me just yet */
|
||||
nabort_procs--;
|
||||
}
|
||||
for (i = 0 ; i < ompi_comm_remote_size(comm) ; ++i) {
|
||||
if (OPAL_EQUAL != ompi_rte_compare_name_fields(OMPI_RTE_CMP_ALL,
|
||||
&comm->c_remote_group->grp_proc_pointers[i]->proc_name,
|
||||
OMPI_PROC_MY_NAME)) {
|
||||
assert(count <= nabort_procs);
|
||||
abort_procs[count++] =
|
||||
comm->c_remote_group->grp_proc_pointers[i]->proc_name;
|
||||
} else {
|
||||
/* don't terminate me just yet */
|
||||
nabort_procs--;
|
||||
}
|
||||
}
|
||||
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user