|
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];
59 sprintf(path, "/sys/class/infiniband/%s/device/local_cpus",
60 ibv_get_device_name(ibdev));
61 sysfile = fopen(path, "r");
|
|
|