Skip to content

Commit 81823d7

Browse files
committed
osc/portals4: Store the no_locks parameter in osc_portals4_component.no_locks
1 parent 76b3865 commit 81823d7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

ompi/mca/osc/portals4/osc_portals4.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ struct ompi_osc_portals4_component_t {
5454
ptl_size_t matching_fetch_atomic_max;
5555
ptl_size_t matching_atomic_ordered_size;
5656
ptl_size_t ptl_max_msg_size; /* max size given by portals (cf PtlNIInit) */
57+
bool no_locks;
5758
ptl_uid_t uid;
5859
opal_mutex_t lock;
5960
opal_condition_t cond;

ompi/mca/osc/portals4/osc_portals4_component.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ component_open(void)
250250
static int
251251
component_register(void)
252252
{
253-
bool ompi_osc_portals4_no_locks = false;
253+
mca_osc_portals4_component.no_locks = false;
254254
(void) mca_base_component_var_register(&mca_osc_portals4_component.super.osc_version,
255255
"no_locks",
256256
"Enable optimizations available only if MPI_LOCK is "
@@ -259,7 +259,7 @@ component_register(void)
259259
MCA_BASE_VAR_TYPE_BOOL, NULL, 0, 0,
260260
OPAL_INFO_LVL_9,
261261
MCA_BASE_VAR_SCOPE_READONLY,
262-
&ompi_osc_portals4_no_locks);
262+
&mca_osc_portals4_component.no_locks);
263263

264264
mca_osc_portals4_component.ptl_max_msg_size = PTL_SIZE_MAX;
265265
(void) mca_base_component_var_register(&mca_osc_portals4_component.super.osc_version,

0 commit comments

Comments
 (0)