Explorar el Código

Do not create empty combined worker

Cédric Augonnet hace 14 años
padre
commit
d35da008c8
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/sched_policies/detect_combined_workers.c

+ 1 - 1
src/sched_policies/detect_combined_workers.c

@@ -83,7 +83,7 @@ static int find_combinations_with_hwloc_rec(hwloc_obj_t obj, int *worker_array,
 	}
 	
 	/* If there is at least 2 children that are valid, we combined them. */
-	if (cpu_children_cnt > 1)
+	if (cpu_children_cnt > 1 && worker_cnt_rec > 0)
 		starpu_combined_worker_assign_workerid(worker_cnt_rec, worker_array_rec);
 
 	return (cpu_children_cnt == obj->arity);