osc/portals4: Store the no_locks parameter in osc_portals4_component.no_locks
Этот коммит содержится в:
родитель
76b38651da
Коммит
81823d7a63
@ -54,6 +54,7 @@ struct ompi_osc_portals4_component_t {
|
|||||||
ptl_size_t matching_fetch_atomic_max;
|
ptl_size_t matching_fetch_atomic_max;
|
||||||
ptl_size_t matching_atomic_ordered_size;
|
ptl_size_t matching_atomic_ordered_size;
|
||||||
ptl_size_t ptl_max_msg_size; /* max size given by portals (cf PtlNIInit) */
|
ptl_size_t ptl_max_msg_size; /* max size given by portals (cf PtlNIInit) */
|
||||||
|
bool no_locks;
|
||||||
ptl_uid_t uid;
|
ptl_uid_t uid;
|
||||||
opal_mutex_t lock;
|
opal_mutex_t lock;
|
||||||
opal_condition_t cond;
|
opal_condition_t cond;
|
||||||
|
@ -250,7 +250,7 @@ component_open(void)
|
|||||||
static int
|
static int
|
||||||
component_register(void)
|
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,
|
(void) mca_base_component_var_register(&mca_osc_portals4_component.super.osc_version,
|
||||||
"no_locks",
|
"no_locks",
|
||||||
"Enable optimizations available only if MPI_LOCK is "
|
"Enable optimizations available only if MPI_LOCK is "
|
||||||
@ -259,7 +259,7 @@ component_register(void)
|
|||||||
MCA_BASE_VAR_TYPE_BOOL, NULL, 0, 0,
|
MCA_BASE_VAR_TYPE_BOOL, NULL, 0, 0,
|
||||||
OPAL_INFO_LVL_9,
|
OPAL_INFO_LVL_9,
|
||||||
MCA_BASE_VAR_SCOPE_READONLY,
|
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;
|
mca_osc_portals4_component.ptl_max_msg_size = PTL_SIZE_MAX;
|
||||||
(void) mca_base_component_var_register(&mca_osc_portals4_component.super.osc_version,
|
(void) mca_base_component_var_register(&mca_osc_portals4_component.super.osc_version,
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user