Skip to content

Commit d537ee9

Browse files
committed
Merge pull request #1340 from jsquyres/pr/decrease-mpi_add_procs_cutoff
RFC: ompi_mpi_params.c: set mpi_add_procs_cutoff default to 0
2 parents 8558def + 902b477 commit d537ee9

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

ompi/runtime/ompi_mpi_params.c

+7-5
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* University of Stuttgart. All rights reserved.
1111
* Copyright (c) 2004-2005 The Regents of the University of California.
1212
* All rights reserved.
13-
* Copyright (c) 2006-2015 Cisco Systems, Inc. All rights reserved.
13+
* Copyright (c) 2006-2016 Cisco Systems, Inc. All rights reserved.
1414
* Copyright (c) 2007-2015 Los Alamos National Security, LLC. All rights
1515
* reserved.
1616
* Copyright (c) 2013 NVIDIA Corporation. All rights reserved.
@@ -64,7 +64,9 @@ int ompi_mpi_event_tick_rate = -1;
6464
char *ompi_mpi_show_mca_params_string = NULL;
6565
bool ompi_mpi_have_sparse_group_storage = !!(OMPI_GROUP_SPARSE);
6666
bool ompi_mpi_preconnect_mpi = false;
67-
uint32_t ompi_add_procs_cutoff = 1024;
67+
68+
#define OMPI_ADD_PROCS_CUTOFF_DEFAULT 0
69+
uint32_t ompi_add_procs_cutoff = OMPI_ADD_PROCS_CUTOFF_DEFAULT;
6870
bool ompi_mpi_dynamics_enabled = true;
6971

7072
static bool show_default_mca_params = false;
@@ -263,12 +265,12 @@ int ompi_mpi_register_params(void)
263265
ompi_rte_abort(1, NULL);
264266
}
265267

266-
ompi_add_procs_cutoff = 1024;
268+
ompi_add_procs_cutoff = OMPI_ADD_PROCS_CUTOFF_DEFAULT;
267269
(void) mca_base_var_register ("ompi", "mpi", NULL, "add_procs_cutoff",
268270
"Maximum world size for pre-allocating resources for all "
269271
"remote processes. Increasing this limit may improve "
270-
"communication performance at the cost of memory usage "
271-
"(default: 1024)", MCA_BASE_VAR_TYPE_UNSIGNED_INT, NULL,
272+
"communication performance at the cost of memory usage",
273+
MCA_BASE_VAR_TYPE_UNSIGNED_INT, NULL,
272274
0, 0, OPAL_INFO_LVL_3, MCA_BASE_VAR_SCOPE_LOCAL,
273275
&ompi_add_procs_cutoff);
274276

0 commit comments

Comments
 (0)