diff --git a/ompi/mca/osc/portals4/osc_portals4.h b/ompi/mca/osc/portals4/osc_portals4.h index b0dea37265..c80b2b4a58 100644 --- a/ompi/mca/osc/portals4/osc_portals4.h +++ b/ompi/mca/osc/portals4/osc_portals4.h @@ -54,6 +54,7 @@ struct ompi_osc_portals4_component_t { ptl_size_t matching_fetch_atomic_max; ptl_size_t matching_atomic_ordered_size; ptl_size_t ptl_max_msg_size; /* max size given by portals (cf PtlNIInit) */ + bool no_locks; ptl_uid_t uid; opal_mutex_t lock; opal_condition_t cond; diff --git a/ompi/mca/osc/portals4/osc_portals4_component.c b/ompi/mca/osc/portals4/osc_portals4_component.c index 15fc583344..0bc8c5148e 100644 --- a/ompi/mca/osc/portals4/osc_portals4_component.c +++ b/ompi/mca/osc/portals4/osc_portals4_component.c @@ -250,7 +250,7 @@ component_open(void) static int component_register(void) { - bool ompi_osc_portals4_no_locks = false; + mca_osc_portals4_component.no_locks = false; (void) mca_base_component_var_register(&mca_osc_portals4_component.super.osc_version, "no_locks", "Enable optimizations available only if MPI_LOCK is " @@ -259,7 +259,7 @@ component_register(void) MCA_BASE_VAR_TYPE_BOOL, NULL, 0, 0, OPAL_INFO_LVL_9, MCA_BASE_VAR_SCOPE_READONLY, - &ompi_osc_portals4_no_locks); + &mca_osc_portals4_component.no_locks); mca_osc_portals4_component.ptl_max_msg_size = PTL_SIZE_MAX; (void) mca_base_component_var_register(&mca_osc_portals4_component.super.osc_version,