19 #ifndef HWLOC_OPENFABRICS_VERBS_H
20 #define HWLOC_OPENFABRICS_VERBS_H
23 #include <hwloc/autogen/config.h>
24 #ifdef HWLOC_LINUX_SYS
25 #include <hwloc/linux.h>
28 #include <infiniband/verbs.h>
61 static __hwloc_inline
int
65 #ifdef HWLOC_LINUX_SYS
68 #define HWLOC_OPENFABRICS_VERBS_SYSFS_PATH_MAX 128
69 char path[HWLOC_OPENFABRICS_VERBS_SYSFS_PATH_MAX];
77 sprintf(path,
"/sys/class/infiniband/%s/device/local_cpus",
78 ibv_get_device_name(ibdev));
79 sysfile = fopen(path,
"r");
118 && osdev->
name && !strcmp(ibname, osdev->
name))
140 struct ibv_device *ibdev)