I'm trying to profile my code using gprof and compile using the -pg command but when I run the executable no gmon.out is produced. My code contains a few modules and links to the Math Kernel Library(blas) if that is necessary to know.
I compile my code using:
ifort -module ../mod -pg [all my files.f90] -mkl -lmkl_blas95_lp64
I've also tried doing it piecemeal by creating the object and .mod files then linking to see if that would make a difference but nothing.