]> xenbits.xensource.com Git - people/andrewcoop/hwloc.git/commitdiff
utils: fix cpubind support checks
authorBrice Goglin <Brice.Goglin@inria.fr>
Wed, 18 Dec 2013 18:31:03 +0000 (19:31 +0100)
committerBrice Goglin <Brice.Goglin@inria.fr>
Wed, 18 Dec 2013 18:31:03 +0000 (19:31 +0100)
utils/hwloc-ps.c
utils/lstopo.c

index 04c42a70a32e4e0b0b778046d9c18752db4b2af8..7e9df5f05c3ca51dd2d3c4309fce1017716ddd8a 100644 (file)
@@ -142,7 +142,7 @@ int main(int argc, char *argv[])
 
   support = hwloc_topology_get_support(topology);
 
-  if (!support->cpubind->get_thisproc_cpubind)
+  if (!support->cpubind->get_proc_cpubind)
     goto out_with_topology;
 
   topocpuset = hwloc_topology_get_topology_cpuset(topology);
index 8dd3501b5acbe56e925084e4d98619d858d4454d..7956289db7b0102e24f7566d8666c26c9de65ec5 100644 (file)
@@ -109,7 +109,7 @@ static void add_process_objects(hwloc_topology_t topology)
 
   support = hwloc_topology_get_support(topology);
 
-  if (!support->cpubind->get_thisproc_cpubind)
+  if (!support->cpubind->get_proc_cpubind)
     return;
 
   dir  = opendir("/proc");