Sadly, the connection priorities being defined at time of variable instantiation were being overridden just before registering the param. Thus, changes people made to the relative priority of the cpc methods were being lost. Fix it be removing the duplicate initializiation, letting the value defined at instantiation be the one actually used.
cmr:v1.7.4:reviewer=hjelmn This commit was SVN r29212.
Этот коммит содержится в:
родитель
fe9a744289
Коммит
34fbec1f49
@ -51,7 +51,7 @@ typedef enum {
|
||||
ENDPOINT_CONNECT_ACK
|
||||
} connect_message_type_t;
|
||||
|
||||
static int oob_priority = 50;
|
||||
static int oob_priority = 0;
|
||||
static bool rml_recv_posted = false;
|
||||
|
||||
static void oob_component_register(void);
|
||||
@ -98,7 +98,7 @@ ompi_btl_openib_connect_base_component_t ompi_btl_openib_connect_oob = {
|
||||
/* Open - this functions sets up any oob specific commandline params */
|
||||
static void oob_component_register(void)
|
||||
{
|
||||
oob_priority = 50;
|
||||
/* the priority is initialized in the declaration above */
|
||||
(void) mca_base_component_var_register(&mca_btl_openib_component.super.btl_version,
|
||||
"connect_oob_priority",
|
||||
"The selection method priority for oob",
|
||||
|
@ -228,7 +228,7 @@ static void rdmacm_contents_destructor(rdmacm_contents_t *contents)
|
||||
*/
|
||||
static void rdmacm_component_register(void)
|
||||
{
|
||||
rdmacm_priority = 30;
|
||||
/* the priority is initialized in the declaration above */
|
||||
(void) mca_base_component_var_register(&mca_btl_openib_component.super.btl_version,
|
||||
"connect_rdmacm_priority",
|
||||
"The selection method priority for rdma_cm",
|
||||
|
@ -342,7 +342,7 @@ ompi_btl_openib_connect_base_component_t ompi_btl_openib_connect_udcm = {
|
||||
|
||||
static void udcm_component_register(void)
|
||||
{
|
||||
udcm_priority = 0;
|
||||
/* the priority is initialized in the declaration above */
|
||||
(void) mca_base_component_var_register(&mca_btl_openib_component.super.btl_version,
|
||||
"connect_udcm_priority",
|
||||
"The selection method priority for ud",
|
||||
|
@ -1058,7 +1058,7 @@ static int xoob_component_query(mca_btl_openib_module_t *openib_btl,
|
||||
/* Open - this functions sets up any xoob specific commandline params */
|
||||
static void xoob_component_register(void)
|
||||
{
|
||||
xoob_priority = 60;
|
||||
/* the priority is initialized in the declaration above */
|
||||
(void) mca_base_component_var_register(&mca_btl_openib_component.super.btl_version,
|
||||
"connect_xoob_priority",
|
||||
"The selection method priority for xoob",
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user