15 #ifndef HWLOC_MYRIEXPRESS_H
16 #define HWLOC_MYRIEXPRESS_H
19 #include <hwloc/autogen/config.h>
40 static __hwloc_inline
int
47 if (mx_get_info(NULL, MX_NUMA_NODE, &in,
sizeof(in), &out,
sizeof(out)) != MX_SUCCESS) {
52 if (out != (uint32_t) -1) {
73 static __hwloc_inline
int
79 mx_endpoint_addr_t eaddr;
81 if (mx_get_endpoint_addr(endpoint, &eaddr) != MX_SUCCESS) {
86 if (mx_decompose_endpoint_addr(eaddr, &nid, &eid) != MX_SUCCESS) {
91 if (mx_nic_id_to_board_number(nid, &nindex) != MX_SUCCESS) {
HWLOC_DECLSPEC void hwloc_bitmap_copy(hwloc_bitmap_t dst, hwloc_const_bitmap_t src)
Copy the contents of bitmap src into the already allocated bitmap dst.
unsigned os_index
OS-provided physical index number.
Definition: hwloc.h:332
static __hwloc_inline int hwloc_mx_endpoint_get_device_cpuset(hwloc_topology_t topology, mx_endpoint_t endpoint, hwloc_cpuset_t set)
Get the CPU set of logical processors that are physically close to endpoint endpoint.
Definition: myriexpress.h:74
static __hwloc_inline hwloc_const_cpuset_t __hwloc_attribute_pure hwloc_topology_get_complete_cpuset(hwloc_topology_t topology)
Get complete CPU set.
Definition: helper.h:729
Macros to help interaction between hwloc and Myrinet Express.
static __hwloc_inline int hwloc_mx_board_get_device_cpuset(hwloc_topology_t topology, unsigned id, hwloc_cpuset_t set)
Get the CPU set of logical processors that are physically close the MX board id.
Definition: myriexpress.h:41
Structure of a topology object.
Definition: hwloc.h:329
Macros to help interaction between hwloc and Linux.
NUMA node.
Definition: hwloc.h:184
static __hwloc_inline hwloc_obj_t hwloc_get_next_obj_by_type(hwloc_topology_t topology, hwloc_obj_type_t type, hwloc_obj_t prev)
Returns the next object of type type.
Definition: helper.h:158
hwloc_cpuset_t cpuset
CPUs covered by this object.
Definition: hwloc.h:366