|
1 | 1 | /*
|
2 |
| - * Copyright © 2010-2023 Inria. All rights reserved. |
| 2 | + * Copyright © 2010-2024 Inria. All rights reserved. |
3 | 3 | * See COPYING in top-level directory.
|
4 | 4 | */
|
5 | 5 |
|
@@ -70,11 +70,10 @@ struct hwloc_distances_s {
|
70 | 70 | * The \p kind attribute of struct hwloc_distances_s is a OR'ed set
|
71 | 71 | * of kinds.
|
72 | 72 | *
|
73 |
| - * A kind of format HWLOC_DISTANCES_KIND_FROM_* specifies where the |
74 |
| - * distance information comes from, if known. |
75 |
| - * |
76 |
| - * A kind of format HWLOC_DISTANCES_KIND_MEANS_* specifies whether |
77 |
| - * values are latencies or bandwidths, if applicable. |
| 73 | + * Each distance matrix has exactly one kind HWLOC_DISTANCES_KIND_FROM_* |
| 74 | + * specifying where distance information comes from, |
| 75 | + * and exactly one kind HWLOC_DISTANCES_KIND_MEANS_* specifying |
| 76 | + * whether values are latencies or bandwidths. |
78 | 77 | */
|
79 | 78 | enum hwloc_distances_kind_e {
|
80 | 79 | /** \brief These distances were obtained from the operating system or hardware.
|
@@ -357,6 +356,8 @@ typedef void * hwloc_distances_add_handle_t;
|
357 | 356 | * Otherwise, it will be copied internally and may later be freed by the caller.
|
358 | 357 | *
|
359 | 358 | * \p kind specifies the kind of distance as a OR'ed set of ::hwloc_distances_kind_e.
|
| 359 | + * Exactly one kind of meaning and one kind of provenance must be given |
| 360 | + * (e.g. ::HWLOC_DISTANCES_KIND_MEANS_BANDWIDTH and ::HWLOC_DISTANCES_KIND_FROM_USER). |
360 | 361 | * Kind ::HWLOC_DISTANCES_KIND_HETEROGENEOUS_TYPES will be automatically set
|
361 | 362 | * according to objects having different types in hwloc_distances_add_values().
|
362 | 363 | *
|
|
0 commit comments