use dynamic scheduling in mandelbrot-openmp

master
neingeist 11 years ago
parent d553cf9488
commit 970c8a9570

@ -21,7 +21,7 @@ void drawmandelbrot(SDL_Surface * surface) {
} }
Uint32 *pixels = (Uint32 *) surface->pixels; 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++) { for (int i = 0; i < surface->w * surface->h; i++) {
int y = i / surface->w; int y = i / surface->w;
int x = i % surface->w; int x = i % surface->w;

Loading…
Cancel
Save