Samuel Thibault 12 年之前
父节点
当前提交
ea8c77256e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/sched_policies/detect_combined_workers.c

+ 1 - 1
src/sched_policies/detect_combined_workers.c

@@ -441,7 +441,7 @@ static void find_workers(hwloc_obj_t obj, int cpu_workers[STARPU_NMAXWORKERS], u
 static void synthesize_intermediate_workers(struct starpu_machine_topology *topology, hwloc_obj_t *children, unsigned arity, unsigned n, unsigned synthesize_arity)
 {
     unsigned nworkers, i, j;
-    unsigned chunk_size = (n + synthesize_arity-1) / max_arity;
+    unsigned chunk_size = (n + synthesize_arity-1) / synthesize_arity;
     unsigned chunk_start;
     int cpu_workers[STARPU_NMAXWORKERS];
     int ret;