Skip to content

Commit

Permalink
Merge pull request #2344 from yosefe/topic/pml-ucx-status-cancelled-v…
Browse files Browse the repository at this point in the history
…1.10

pml_ucx: fix uninitialized field req_status->_cancelled.
  • Loading branch information
rhc54 authored Nov 8, 2016
2 parents 631a442 + cd15340 commit 800063e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ompi/mca/pml/ucx/pml_ucx_request.h
Original file line number Diff line number Diff line change
Expand Up @@ -136,14 +136,14 @@ static inline ucp_ep_h mca_pml_ucx_get_ep(ompi_communicator_t *comm, int dst)
static inline void mca_pml_ucx_request_reset(ompi_request_t *req)
{
req->req_complete = false;
req->req_status._cancelled = false;
}

static void mca_pml_ucx_set_send_status(ompi_status_public_t* mpi_status,
ucs_status_t status)
{
if (status == UCS_OK) {
if (OPAL_LIKELY(status == UCS_OK)) {
mpi_status->MPI_ERROR = MPI_SUCCESS;
mpi_status->_cancelled = false;
} else if (status == UCS_ERR_CANCELED) {
mpi_status->_cancelled = true;
} else {
Expand All @@ -157,11 +157,12 @@ static inline void mca_pml_ucx_set_recv_status(ompi_status_public_t* mpi_status,
{
int64_t tag;

if (ucp_status == UCS_OK) {
if (OPAL_LIKELY(ucp_status == UCS_OK)) {
tag = info->sender_tag;
mpi_status->MPI_ERROR = MPI_SUCCESS;
mpi_status->MPI_SOURCE = PML_UCX_TAG_GET_SOURCE(tag);
mpi_status->MPI_TAG = PML_UCX_TAG_GET_MPI_TAG(tag);
mpi_status->_cancelled = false;
mpi_status->_ucount = info->length;
} else if (ucp_status == UCS_ERR_MESSAGE_TRUNCATED) {
mpi_status->MPI_ERROR = MPI_ERR_TRUNCATE;
Expand Down

0 comments on commit 800063e

Please sign in to comment.