Skip to content

Commit c549f82

Browse files
author
Ralph Castain
authored
Merge pull request #2778 from rhc54/topic/threads
Ensure that oob/base level data is always accessed in the oob/base event thread. Make debruijn the default routed component
2 parents adbcefe + ac4fcd3 commit c549f82

File tree

3 files changed

+5
-29
lines changed

3 files changed

+5
-29
lines changed

orte/mca/oob/tcp/oob_tcp_peer.h

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -76,25 +76,6 @@ typedef struct {
7676
} mca_oob_tcp_peer_op_t;
7777
OBJ_CLASS_DECLARATION(mca_oob_tcp_peer_op_t);
7878

79-
#define ORTE_ACTIVATE_TCP_PEER_OP(p, a, n, pts, cbfunc) \
80-
do { \
81-
mca_oob_tcp_peer_op_t *pop; \
82-
pop = OBJ_NEW(mca_oob_tcp_peer_op_t); \
83-
pop->peer.jobid = (p)->jobid; \
84-
pop->peer.vpid = (p)->vpid; \
85-
pop->af_family = (a); \
86-
if (NULL != (n)) { \
87-
pop->net = strdup((n)); \
88-
} \
89-
if (NULL != (pts)) { \
90-
pop->port = strdup((pts)); \
91-
} \
92-
opal_event_set((p)->ev_base, &pop->ev, -1, \
93-
OPAL_EV_WRITE, (cbfunc), pop); \
94-
opal_event_set_priority(&pop->ev, ORTE_MSG_PRI); \
95-
opal_event_active(&pop->ev, OPAL_EV_WRITE, 1); \
96-
} while(0);
97-
9879
#define ORTE_ACTIVATE_TCP_CMP_OP(p, r, cbfunc) \
9980
do { \
10081
mca_oob_tcp_peer_op_t *pop; \
@@ -106,7 +87,7 @@ OBJ_CLASS_DECLARATION(mca_oob_tcp_peer_op_t);
10687
if (NULL != proxy) { \
10788
pop->rtmod = strdup(proxy); \
10889
} \
109-
opal_event_set((p)->ev_base, &pop->ev, -1, \
90+
opal_event_set(orte_oob_base.ev_base, &pop->ev, -1, \
11091
OPAL_EV_WRITE, (cbfunc), pop); \
11192
opal_event_set_priority(&pop->ev, ORTE_MSG_PRI); \
11293
opal_event_active(&pop->ev, OPAL_EV_WRITE, 1); \

orte/mca/routed/debruijn/routed_debruijn_component.c

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* All rights reserved.
55
* Copyright (c) 2004-2008 The Trustees of Indiana University.
66
* All rights reserved.
7-
* Copyright (c) 2016 Intel, Inc. All rights reserved.
7+
* Copyright (c) 2016-2017 Intel, Inc. All rights reserved.
88
* $COPYRIGHT$
99
*
1010
* Additional copyrights may follow
@@ -48,13 +48,8 @@ static int orte_routed_debruijn_component_query(mca_base_module_t **module, int
4848
/* Debruijn shall be our default, especially for large systems. For smaller
4949
* systems, we will allow other options that have even fewer hops to
5050
* support wireup
51-
*
52-
* XXX: set this to 0 until we can figure out what's going on with
53-
* it within undersubscribed allocations. Once debruijn is fixed,
54-
* revert back to priority 70. Note: this component seems to work fine within
55-
* fully utilized allocations.
5651
*/
57-
*priority = 0;
52+
*priority = 70;
5853
*module = (mca_base_module_t *) &orte_routed_debruijn_module;
5954
return ORTE_SUCCESS;
6055
}

orte/mca/routed/radix/routed_radix_component.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Copyright (c) 2004-2008 The Trustees of Indiana University.
66
* All rights reserved.
77
* Copyright (c) 2013 Cisco Systems, Inc. All rights reserved.
8-
* Copyright (c) 2013-2016 Intel, Inc. All rights reserved.
8+
* Copyright (c) 2013-2017 Intel, Inc. All rights reserved.
99
* $COPYRIGHT$
1010
*
1111
* Additional copyrights may follow
@@ -69,7 +69,7 @@ static int orte_routed_radix_component_query(mca_base_module_t **module, int *pr
6969
return ORTE_ERR_BAD_PARAM;
7070
}
7171

72-
*priority = 70;
72+
*priority = 50;
7373
*module = (mca_base_module_t *) &orte_routed_radix_module;
7474
return ORTE_SUCCESS;
7575
}

0 commit comments

Comments
 (0)