Profile of the code on Cirrus

To see the profile on a code, we are going to work with gprof on Cirrus. Let’s use the percolate code: Include the flag -pg for Intel compiler in the Makefile to compile.
After compiling, we will see that gmon.out was created,  as well as its executable:To view the performance data, replace the gmon.out with the executable:

gprof ./percolate

Edit again the makefile with the flags -profile-fuctionts and -O3 as follows:

After recompiling and executing with the Intel profiling, two new files are going to be created *.xml and *.dump. To see the graphic output, run the executable *.sh: A graph will be displayed with the profile of the percolate code:To check the performance of loops, use can use the flag -profile-loops in the Makefile:

-profile-loops=all
-profile-loops=outer
-profile-loops=inner

Each one used separately to produce this outputs:

Screen Shot 2018-11-02 at 11.43.22 AMScreen Shot 2018-11-02 at 11.51.00 AMScreen Shot 2018-11-02 at 11.52.14 AM

About Julita Inca

Ingeniero de Sistemas UNAC, Magíster en Ciencias de la Computación PUCP, Magíster en Computación de Alto Rendimiento de la Universidad de Edimburgo, 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. Leader of LinuXatUNI Community, HPC Software Specialist at UKAEA, and reviewer of the Technological Magazine of ESPOL-RTE, and volunteering Linux training for MINSA Peru... a simple mortal, just like you!
This entry was posted in τεχνολογια :: Technology and tagged , , , , , , . 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