瀏覽代碼

examples: fix wrong use of STARPU_SCC_WORKER in dot_product.c

I bet that can_execute() always returns true.

This fixes a bug introduced in c0e4dabb ("Enable CPU code on MIC/SCC").
Samuel Pitoiset 9 年之前
父節點
當前提交
1d7202a33e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      examples/reductions/dot_product.c

+ 1 - 1
examples/reductions/dot_product.c

@@ -58,7 +58,7 @@ static int cublas_version;
 static int can_execute(unsigned workerid, struct starpu_task *task, unsigned nimpl)
 {
 	enum starpu_worker_archtype type = starpu_worker_get_type(workerid);
-	if (type == STARPU_CPU_WORKER || type == STARPU_OPENCL_WORKER || type == STARPU_MIC_WORKER || STARPU_SCC_WORKER)
+	if (type == STARPU_CPU_WORKER || type == STARPU_OPENCL_WORKER || type == STARPU_MIC_WORKER || type == STARPU_SCC_WORKER)
 		return 1;
 
 #ifdef STARPU_USE_CUDA