use dynamic scheduling in mandelbrot-openmp
This commit is contained in:
parent
d553cf9488
commit
970c8a9570
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue