Explorar o código

Yet another small fix

Cédric Augonnet %!s(int64=14) %!d(string=hai) anos
pai
achega
9ec0dd03e7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      examples/mandelbrot/mandelbrot.c

+ 1 - 1
examples/mandelbrot/mandelbrot.c

@@ -332,7 +332,7 @@ static void compute_block_spmd(void *descr[], void *cl_arg)
 
 	while (1)
 	{
-		local_iy = STARPU_ATOMIC_ADD(pcnt, 1);
+		local_iy = STARPU_ATOMIC_ADD(pcnt, 1) - 1;
 		if (local_iy >= block_size)
 			break;