Cédric Augonnet 14 年之前
父节点
当前提交
e5d66db4d2
共有 1 个文件被更改,包括 1 次插入4 次删除
  1. 1 4
      examples/mandelbrot/mandelbrot.c

+ 1 - 4
examples/mandelbrot/mandelbrot.c

@@ -325,9 +325,6 @@ static void compute_block_spmd(void *descr[], void *cl_arg)
 	int *pcnt;
 	starpu_unpack_cl_args(cl_arg, &iby, &block_size, &stepX, &stepY, &pcnt);
 
-	int size = starpu_combined_worker_get_size();
-	int rank = starpu_combined_worker_get_rank();
-
 	unsigned *data = (unsigned *)STARPU_VECTOR_GET_PTR(descr[0]);
 
 	int ix, iy; // global coordinates
@@ -336,7 +333,7 @@ static void compute_block_spmd(void *descr[], void *cl_arg)
 	while (1)
 	{
 		local_iy = STARPU_ATOMIC_ADD(pcnt, 1);
-		if (local_iy >= size)
+		if (local_iy >= block_size)
 			break;
 
 		iy = iby*block_size + local_iy;