Browse Source

CPU number is not a core number any more, but a PU number

Samuel Thibault 11 years ago
parent
commit
31a4c0403b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/core/perfmodel/perfmodel_bus.c

+ 1 - 1
src/core/perfmodel/perfmodel_bus.c

@@ -501,7 +501,7 @@ static void measure_bandwidth_between_cpus_and_dev(int dev, struct dev_timing *d
 	 * measure the bandwith for each pair of (CPU, GPU), which is slower.
 	 * */
 #ifdef STARPU_HAVE_HWLOC
-	int cpu_depth = hwloc_get_type_depth(hwtopology, HWLOC_OBJ_CORE);
+	int cpu_depth = hwloc_get_type_depth(hwtopology, HWLOC_OBJ_PU);
 	int nnuma_nodes = hwloc_get_nbobjs_by_depth(hwtopology, HWLOC_OBJ_NODE);
 
 	/* If no NUMA node was found, we assume that we have a single memory