|
19 #ifndef HWLOC_OPENFABRICS_VERBS_H
20 #define HWLOC_OPENFABRICS_VERBS_H
23 #include <hwloc/autogen/config.h>
24 #include <hwloc/linux.h>
26 #include <infiniband/verbs.h>
52 #ifdef HWLOC_LINUX_SYS
55 #define HWLOC_OPENFABRICS_VERBS_SYSFS_PATH_MAX 128
56 char path[HWLOC_OPENFABRICS_VERBS_SYSFS_PATH_MAX];
64 sprintf(path, "/sys/class/infiniband/%s/device/local_cpus",
65 ibv_get_device_name(ibdev));
66 sysfile = fopen(path, "r");
105 && osdev-> name && !strcmp(ibname, osdev-> name))
|
|
|