Skip to content

Commit fc9e300

Browse files
committed
Incorporated review comments
Changed the default acoll priority back to 0. Signed-off-by: Manu Shantharam <[email protected]>
1 parent 31e9e60 commit fc9e300

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

ompi/mca/coll/acoll/coll_acoll.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ BEGIN_C_DECLS
3333
OMPI_DECLSPEC extern const mca_coll_base_component_3_0_0_t mca_coll_acoll_component;
3434
extern int mca_coll_acoll_priority;
3535
extern int mca_coll_acoll_max_comms;
36+
extern int mca_coll_acoll_comm_size_thresh;
3637
extern int mca_coll_acoll_sg_size;
3738
extern int mca_coll_acoll_sg_scale;
3839
extern int mca_coll_acoll_node_size;
@@ -85,7 +86,6 @@ int mca_coll_acoll_barrier_intra(struct ompi_communicator_t *comm, mca_coll_base
8586

8687
END_C_DECLS
8788

88-
#define MCA_COLL_ACOLL_MIN_COMM_SIZE 16
8989
#define MCA_COLL_ACOLL_ROOT_CHANGE_THRESH 10
9090
#define MCA_COLL_ACOLL_SPLIT_FACTOR_LIST_LEN 6
9191
#define MCA_COLL_ACOLL_SPLIT_FACTOR_LIST {2, 4, 8, 16, 32, 64}

ompi/mca/coll/acoll/coll_acoll_component.c

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ const char *mca_coll_acoll_component_version_string
2626
*/
2727
int mca_coll_acoll_priority = 0;
2828
int mca_coll_acoll_max_comms = 10;
29+
int mca_coll_acoll_comm_size_thresh = 16;
2930
int mca_coll_acoll_sg_size = 8;
3031
int mca_coll_acoll_sg_scale = 1;
3132
int mca_coll_acoll_node_size = 128;
@@ -94,13 +95,19 @@ MCA_BASE_COMPONENT_INIT(ompi, coll, acoll)
9495
static int acoll_register(void)
9596
{
9697
/* Use a low priority, but allow other components to be lower */
97-
mca_coll_acoll_priority = 40;
98+
mca_coll_acoll_priority = 0;
9899
(void) mca_base_component_var_register(&mca_coll_acoll_component.collm_version, "priority",
99100
"Priority of the acoll coll component",
100101
MCA_BASE_VAR_TYPE_INT, NULL, 0, 0, OPAL_INFO_LVL_9,
101102
MCA_BASE_VAR_SCOPE_READONLY, &mca_coll_acoll_priority);
102103

103104
/* Defaults on topology */
105+
(void)
106+
mca_base_component_var_register(&mca_coll_acoll_component.collm_version, "comm_size_thresh",
107+
"Disable acoll below this communicator size threshold",
108+
MCA_BASE_VAR_TYPE_INT, NULL, 0, 0, OPAL_INFO_LVL_9,
109+
MCA_BASE_VAR_SCOPE_READONLY, &mca_coll_acoll_comm_size_thresh);
110+
104111
(void)
105112
mca_base_component_var_register(&mca_coll_acoll_component.collm_version, "max_comms",
106113
"Maximum no. of communicators using subgroup based algorithms",

ompi/mca/coll/acoll/coll_acoll_module.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ mca_coll_base_module_t *mca_coll_acoll_comm_query(struct ompi_communicator_t *co
6464
*priority = 0;
6565
return NULL;
6666
}
67-
if (OMPI_COMM_IS_INTRA(comm) && ompi_comm_size(comm) < MCA_COLL_ACOLL_MIN_COMM_SIZE) {
67+
if (ompi_comm_size(comm) < mca_coll_acoll_comm_size_thresh) {
6868
*priority = 0;
6969
return NULL;
7070
}
@@ -135,7 +135,7 @@ mca_coll_base_module_t *mca_coll_acoll_comm_query(struct ompi_communicator_t *co
135135
// Check SMSC availability (currently only for XPMEM)
136136
if (!mca_smsc_base_has_feature(MCA_SMSC_FEATURE_CAN_MAP)) {
137137
opal_output_verbose(MCA_BASE_VERBOSE_ERROR, ompi_coll_base_framework.framework_output,
138-
"coll:acoll: Error: SMSC's xpmem component is not available. "
138+
"coll:acoll: Error: SMSC's MAP feature is not available. "
139139
"SMSC will be disabled for this communicator irrespective of "
140140
"the mca parameters.");
141141
acoll_module->has_smsc = 0;

0 commit comments

Comments
 (0)