From bd64e407d61b115016445076a5302ba670ff7017 Mon Sep 17 00:00:00 2001 From: Yossi Itigin Date: Tue, 24 Jan 2017 14:29:26 +0200 Subject: [PATCH] ucx: fill field_mask in ucp_init() params structure. Signed-off-by: Yossi Itigin --- ompi/mca/pml/ucx/pml_ucx.c | 5 +++++ oshmem/mca/spml/ucx/spml_ucx_component.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ompi/mca/pml/ucx/pml_ucx.c b/ompi/mca/pml/ucx/pml_ucx.c index 74d80b3eaaa..9b0fdf495e0 100644 --- a/ompi/mca/pml/ucx/pml_ucx.c +++ b/ompi/mca/pml/ucx/pml_ucx.c @@ -128,6 +128,11 @@ int mca_pml_ucx_open(void) return OMPI_ERROR; } + params.field_mask = UCP_PARAM_FIELD_FEATURES | + UCP_PARAM_FIELD_REQUEST_SIZE | + UCP_PARAM_FIELD_REQUEST_INIT | + UCP_PARAM_FIELD_REQUEST_CLEANUP | + UCP_PARAM_FIELD_TAG_SENDER_MASK; params.features = UCP_FEATURE_TAG; params.request_size = sizeof(ompi_request_t); params.request_init = mca_pml_ucx_request_init; diff --git a/oshmem/mca/spml/ucx/spml_ucx_component.c b/oshmem/mca/spml/ucx/spml_ucx_component.c index 7491238850a..27536a17450 100644 --- a/oshmem/mca/spml/ucx/spml_ucx_component.c +++ b/oshmem/mca/spml/ucx/spml_ucx_component.c @@ -118,8 +118,8 @@ static int mca_spml_ucx_component_open(void) } memset(¶ms, 0, sizeof(params)); - params.features = UCP_FEATURE_RMA|UCP_FEATURE_AMO32|UCP_FEATURE_AMO64; - + params.field_mask = UCP_PARAM_FIELD_FEATURES; + params.features = UCP_FEATURE_RMA|UCP_FEATURE_AMO32|UCP_FEATURE_AMO64; err = ucp_init(¶ms, ucp_config, &mca_spml_ucx.ucp_context); ucp_config_release(ucp_config); if (UCS_OK != err) {