1
1

Fix the nolocal option on the OMPI trunk

This commit was SVN r14138.
Этот коммит содержится в:
Ralph Castain 2007-03-24 16:16:16 +00:00
родитель 48d1fa830d
Коммит 0d98264097
2 изменённых файлов: 7 добавлений и 7 удалений

Просмотреть файл

@ -121,10 +121,10 @@ int orte_rmaps_base_open(void)
/* Should we schedule on the local node or not? */
mca_base_param_reg_int_name("rmaps", "base_schedule_local",
"If nonzero, allow scheduling MPI applications on the same node as mpirun (default). If zero, do not schedule any MPI applications on the same node as mpirun",
false, false, 1, &value);
if (0 == value) {
mca_base_param_reg_int_name("rmaps", "base_no_schedule_local",
"If false, allow scheduling MPI applications on the same node as mpirun (default). If true, do not schedule any MPI applications on the same node as mpirun",
false, false, (int)false, &value);
if ((int)true == value) {
orte_rmaps_base.no_use_local = true;
} else {
orte_rmaps_base.no_use_local = false;
@ -133,8 +133,8 @@ int orte_rmaps_base_open(void)
/* Should we oversubscribe or not? */
mca_base_param_reg_int_name("rmaps", "base_no_oversubscribe",
"If nonzero, then do not allow oversubscription of nodes - mpirun will return an error if there aren't enough nodes to launch all processes without oversubscribing",
false, false, 0, &value);
"If true, then do not allow oversubscription of nodes - mpirun will return an error if there aren't enough nodes to launch all processes without oversubscribing",
false, false, (int)false, &value);
if ((int)false == value) {
orte_rmaps_base.oversubscribe = true; /** default condition that allows oversubscription */
} else {

Просмотреть файл

@ -252,7 +252,7 @@ opal_cmd_line_init_t cmd_line_init[] = {
"List of hosts to invoke processes on" },
/* OSC mpiexec-like arguments */
{ "rmaps", "base", "schedule_local", '\0', "nolocal", "nolocal", 0,
{ "rmaps", "base", "no_schedule_local", '\0', "nolocal", "nolocal", 0,
NULL, OPAL_CMD_LINE_TYPE_BOOL,
"Do not run any MPI applications on the local node" },