hwloc: API: clearly state that os_index isn't unique while logical_index is
(cherry picked from commit open-mpi/hwloc@6c75302ab2) Conflicts: opal/mca/hwloc/hwloc191/hwloc/include/hwloc.h Signed-off-by: Jeff Squyres <jsquyres@cisco.com>
Этот коммит содержится в:
родитель
a636790604
Коммит
db5bc72496
@ -331,7 +331,10 @@ struct hwloc_obj_memory_s {
|
|||||||
struct hwloc_obj {
|
struct hwloc_obj {
|
||||||
/* physical information */
|
/* physical information */
|
||||||
hwloc_obj_type_t type; /**< \brief Type of object */
|
hwloc_obj_type_t type; /**< \brief Type of object */
|
||||||
unsigned os_index; /**< \brief OS-provided physical index number */
|
unsigned os_index; /**< \brief OS-provided physical index number.
|
||||||
|
* It is not guaranteed unique across the entire machine,
|
||||||
|
* except for PUs and NUMA nodes.
|
||||||
|
*/
|
||||||
char *name; /**< \brief Object description if any */
|
char *name; /**< \brief Object description if any */
|
||||||
|
|
||||||
struct hwloc_obj_memory_s memory; /**< \brief Memory attributes */
|
struct hwloc_obj_memory_s memory; /**< \brief Memory attributes */
|
||||||
@ -346,7 +349,9 @@ struct hwloc_obj {
|
|||||||
* of parent/child links from the root object to here.
|
* of parent/child links from the root object to here.
|
||||||
*/
|
*/
|
||||||
unsigned logical_index; /**< \brief Horizontal index in the whole list of similar objects,
|
unsigned logical_index; /**< \brief Horizontal index in the whole list of similar objects,
|
||||||
* could be a "cousin_rank" since it's the rank within the "cousin" list below */
|
* hence guaranteed unique across the entire machine.
|
||||||
|
* Could be a "cousin_rank" since it's the rank within the "cousin" list below
|
||||||
|
*/
|
||||||
signed os_level; /**< \brief OS-provided physical level, -1 if unknown or meaningless */
|
signed os_level; /**< \brief OS-provided physical level, -1 if unknown or meaningless */
|
||||||
|
|
||||||
/* cousins are all objects of the same type (and depth) across the entire topology */
|
/* cousins are all objects of the same type (and depth) across the entire topology */
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user