1
1

Setup cpus-per-proc and cpus-per-rank as synonyms, both in mca params and on mpirun cmd line

This commit was SVN r21914.
Этот коммит содержится в:
Ralph Castain 2009-08-30 14:30:36 +00:00
родитель ef4cdeeb69
Коммит 0394a4884d
2 изменённых файлов: 7 добавлений и 2 удалений
orte
mca/rmaps/base
tools/orterun

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

@ -151,7 +151,9 @@ int orte_rmaps_base_open(void)
/* #cpus/rank to use */
param = mca_base_param_reg_int_name("rmaps", "base_cpus_per_rank",
"Number of cpus to use for each rank [1-2**15 (default=1)]",
false, false, 1, &value);
false, false, 1, NULL);
mca_base_param_reg_syn_name(param, "rmaps", "base_cpus_per_rank", false);
mca_base_param_lookup_int(param, &value);
orte_rmaps_base.cpus_per_rank = value;
/* if the cpus/rank > 1, then we have to bind to cores UNLESS the binding has
* already been set to something else

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

@ -293,9 +293,12 @@ static opal_cmd_line_init_t cmd_line_init[] = {
{ "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" },
{ "rmaps", "base", "cpus_per_rank", '\0', "cpus-per-proc", "cpus-per-proc", 1,
NULL, OPAL_CMD_LINE_TYPE_INT,
"Number of cpus to use for each process [default=1]" },
{ "rmaps", "base", "cpus_per_rank", '\0', "cpus-per-rank", "cpus-per-rank", 1,
NULL, OPAL_CMD_LINE_TYPE_INT,
"Number of cpus to use for each rank [default=1]" },
"Synonym for cpus-per-proc" },
{ "rmaps", "base", "n_perboard", '\0', "nperboard", "nperboard", 1,
NULL, OPAL_CMD_LINE_TYPE_INT,
"Launch n processes per board on all allocated nodes" },