Skip to content

Commit

Permalink
PML/UCX: improved error processing in MPI_Recv
Browse files Browse the repository at this point in the history
- added OPAL_LIKELY macro

Signed-off-by: Sergey Oblomov <sergeyo@nvidia.com>
  • Loading branch information
Sergey Oblomov committed Nov 2, 2020
1 parent 4ddfab2 commit 4ef5fc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ompi/mca/pml/ucx/pml_ucx_request.h
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ static inline int mca_pml_ucx_set_recv_status_safe(ompi_status_public_t* mpi_sta
{
if (mpi_status != MPI_STATUS_IGNORE) {
return mca_pml_ucx_set_recv_status(mpi_status, ucp_status, info);
} else if ((ucp_status == UCS_OK) || (ucp_status == UCS_ERR_CANCELED)) {
} else if (OPAL_LIKELY(ucp_status == UCS_OK) || (ucp_status == UCS_ERR_CANCELED)) {
return UCS_OK;
} else if (ucp_status == UCS_ERR_MESSAGE_TRUNCATED) {
return MPI_ERR_TRUNCATE;
Expand Down

0 comments on commit 4ef5fc2

Please sign in to comment.