浏览代码

Fix modular-gemm for machines without CPUs

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

+ 2 - 1
src/sched_policies/modular_gemm.c

@@ -140,7 +140,8 @@ static int gemm_push_task(struct starpu_sched_component * component, struct star
 					{
 						if (idworker == workerid)
 						{
-							if (starpu_worker_get_type(workerid) == STARPU_CPU_WORKER
+							if ((starpu_cpu_worker_get_count() == 0 ||
+									starpu_worker_get_type(workerid) == STARPU_CPU_WORKER)
 							 && (starpu_worker_can_execute_task(workerid,task,nimpl)
 							   || starpu_combined_worker_can_execute_task(workerid, task, nimpl)))
 							{