1
1

Update man and help output for new binding option

Signed-off-by: Ralph Castain <rhc@open-mpi.org>
Этот коммит содержится в:
Ralph Castain 2018-06-21 06:36:11 -07:00
родитель f875bfd082
Коммит d2838139e4
2 изменённых файлов: 11 добавлений и 2 удалений

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

@ -337,7 +337,7 @@ static opal_cmd_line_init_t cmd_line_init[] = {
/* Binding options */ /* Binding options */
{ "hwloc_base_binding_policy", '\0', NULL, "bind-to", 1, { "hwloc_base_binding_policy", '\0', NULL, "bind-to", 1,
&orte_cmd_options.binding_policy, OPAL_CMD_LINE_TYPE_STRING, &orte_cmd_options.binding_policy, OPAL_CMD_LINE_TYPE_STRING,
"Policy for binding processes. Allowed values: none, hwthread, core, l1cache, l2cache, l3cache, socket, numa, board (\"none\" is the default when oversubscribed, \"core\" is the default when np<=2, and \"socket\" is the default when np>2). Allowed qualifiers: overload-allowed, if-supported", OPAL_CMD_LINE_OTYPE_BINDING }, "Policy for binding processes. Allowed values: none, hwthread, core, l1cache, l2cache, l3cache, socket, numa, board, cpuset (\"none\" is the default when oversubscribed, \"core\" is the default when np<=2, and \"socket\" is the default when np>2). Allowed qualifiers: overload-allowed, if-supported, ordered", OPAL_CMD_LINE_OTYPE_BINDING },
/* backward compatiblity */ /* backward compatiblity */
{ "hwloc_base_bind_to_core", '\0', "bind-to-core", "bind-to-core", 0, { "hwloc_base_bind_to_core", '\0', "bind-to-core", "bind-to-core", 0,

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

@ -366,7 +366,7 @@ For process binding:
.TP .TP
.B --bind-to \fR<foo>\fP .B --bind-to \fR<foo>\fP
Bind processes to the specified object, defaults to \fIcore\fP. Supported options Bind processes to the specified object, defaults to \fIcore\fP. Supported options
include slot, hwthread, core, l1cache, l2cache, l3cache, socket, numa, board, and none. include slot, hwthread, core, l1cache, l2cache, l3cache, socket, numa, board, cpuset, and none.
. .
.TP .TP
.B -cpus-per-proc\fR,\fP --cpus-per-proc \fR<#perproc>\fP .B -cpus-per-proc\fR,\fP --cpus-per-proc \fR<#perproc>\fP
@ -1149,6 +1149,15 @@ cause the process to be bound to the processors that share a single L3
cache within that socket. cache within that socket.
. .
.PP .PP
Alternatively, processes can be assigned to processors based on
their local rank on a node using the \fI--bind-to cpuset:ordered\fP option
with an associated \fI--cpu-list "0,2,5"\fP. This directs that the first
rank on a node be bound to cpu0, the second rank on the node be bound
to cpu1, and the third rank on the node be bound to cpu5. Note that an
error will result if more processes are assigned to a node than cpus
are provided.
.
.PP
To help balance loads, the binding directive uses a round-robin method when binding to To help balance loads, the binding directive uses a round-robin method when binding to
levels lower than used in the mapper. For example, consider the case where a job is levels lower than used in the mapper. For example, consider the case where a job is
mapped to the socket level, and then bound to core. Each socket will have multiple cores, mapped to the socket level, and then bound to core. Each socket will have multiple cores,