Setup cpus-per-proc and cpus-per-rank as synonyms, both in mca params and on mpirun cmd line
This commit was SVN r21914.
Этот коммит содержится в:
родитель
ef4cdeeb69
Коммит
0394a4884d
orte
@ -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" },
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user