Parallelising Mandelbrot

We have a sequential program of Mandelbrot that take a while when executing, and we can made it in parallel using private and shared variable to check the performance on each one

This is the sequential program C code:and this is the version in C parallelised:Comparing performance

Now lets compare the runtimes between these two options. This is the output for the serialThese are the outputs for parallel ones:


* The parallelization in Fortran as follow:and the output to confirm we did a good job parallelizing: Nested loop

In this case we are going to set two threads that can have other for 3 threads. Then, level 1 is going to handle 2 threads, and at level 2 we are going to have 4 threads!
The answer has to be the same with a lower time:

Advertisements

About Julita Inca

Ingeniero de Sistemas UNAC, Magíster en Ciencias de la Computación PUCP, OPW GNOME 2011, Miembro de la GNOME Foundation desde el 2012, Embajadora Fedora Perú desde el 2012, ganadora del scholarship of the Linux Foundation 2012, experiencia como Admin Linux en GMD y Especialista IT en IBM, con certificaciones RHCE, RHCSA, AIX 6.1, AIX 7 Administrator e ITILv3. Experiencia académica en universidades como PUCP, USIL y UNI. HPC researcher, Leader of LinuXatUNI Community, a simple mortal like you!
This entry was posted in τεχνολογια :: Technology. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s