|
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>
57 static __hwloc_inline int
61 #ifdef HWLOC_LINUX_SYS
64 #define HWLOC_OPENFABRICS_VERBS_SYSFS_PATH_MAX 128
65 char path[HWLOC_OPENFABRICS_VERBS_SYSFS_PATH_MAX];
73 sprintf(path, "/sys/class/infiniband/%s/device/local_cpus",
74 ibv_get_device_name(ibdev));
75 sysfile = fopen(path, "r");
112 && osdev-> name && !strcmp(ibname, osdev-> name))
134 struct ibv_device *ibdev)
|
|
|