|
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>
50 #ifdef HWLOC_LINUX_SYS
53 #define HWLOC_OPENFABRICS_VERBS_SYSFS_PATH_MAX 128
54 char path[HWLOC_OPENFABRICS_VERBS_SYSFS_PATH_MAX];
57 sprintf(path, "/sys/class/infiniband/%s/device/local_cpus",
58 ibv_get_device_name(ibdev));
59 sysfile = fopen(path, "r");
|
|
|