From 970c8a957029f9c14c88eb8701a62b288b485412 Mon Sep 17 00:00:00 2001 From: neingeist Date: Sat, 19 Apr 2014 12:17:36 +0200 Subject: [PATCH] use dynamic scheduling in mandelbrot-openmp --- mandelbrot-openmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mandelbrot-openmp.c b/mandelbrot-openmp.c index 4dfbae6..9664a41 100644 --- a/mandelbrot-openmp.c +++ b/mandelbrot-openmp.c @@ -21,7 +21,7 @@ void drawmandelbrot(SDL_Surface * surface) { } Uint32 *pixels = (Uint32 *) surface->pixels; - #pragma omp parallel for + #pragma omp parallel for schedule(dynamic, 50000) for (int i = 0; i < surface->w * surface->h; i++) { int y = i / surface->w; int x = i % surface->w;