浏览代码

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

Samuel Thibault 11 年之前
父节点
当前提交
31a4c0403b
共有 1 个文件被更改,包括 1 次插入1 次删除
  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