Exercise - “Fractal Mandelbrot”
The following program produces an image of the Mandelbrot fractal.
- Using a Code::Blockes editor type the above program into a file called mandelbrot.f90, compile and run. You can visualize the image 'out.pgm' using gimp.
Parallelize the loop by adding the $omp .. statement, see Lecture slides and openmp.org. The env. parameter OMP_NUM_THREADS should be set to the number of processors by, e.g.
During running time check top processors
- Record time and compare with the serial code. How does it scale?
Exercise - “Fractal Julia”
the following program to include the openmp parallelization. You will need an input file fractal.input
which can be used in Code::Blocks by adding the command < fractal.input in the Program Arguments section.
Record and compare execution times using the serial and OpenMP versions.
Visualize julia.ppm using any graphical software available.