Enable profiling with gprof

Post here if you have having problem using the Makefile build process.

Enable profiling with gprof

Postby tor_kje » Sun Sep 08, 2013 1:48 pm


I want to be able to use gprof to profile my program
written in fortran90. gprof does however not automatically
profile the lapack routines and after some search I found this:

Q: How can I profile a code, using gprof or xprofiler, and include the calls to LAPACK?
A: You'll need to include the profile-enabled version of LAPACK, namely -llapack_profile which resides in /usr/local/lib

I have not much experience with makefiles so I have failed miserably
in trying to create this library. Is there anyone that can help me with

Also, at the moment I have downloaded the libraries using synaptic package
manager for Ubuntu (which takes lapack 3.4.2 if you choose the right repo).
Do I need to uninstall this before installing through makefiles?

Posts: 2
Joined: Sun Sep 08, 2013 11:56 am

Return to Makefile

Who is online

Users browsing this forum: No registered users and 1 guest