Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

Call-graph data in profile output

ereisch
New Contributor II
1,073 Views

I'm trying to perform some statistical analysis of my Fortran program using gprof.  When I compile my files with "-p", the expected gmon.out file is created, however the profile file lacks call-graph data:

$ gprof -c -z -q myprog
gprof: gmon.out file is missing call-graph data

Is there a compiler flag I'm missing, or does the compiler not generate this information?  Version 12.0.4.191 Build 20110427

Thanks

0 Kudos
5 Replies
Kenneth_C_Intel
Employee
1,073 Views

 Are you running your application after you compile your application. That will generate the gmon.out file.

-Ken

 

0 Kudos
ereisch
New Contributor II
1,073 Views

Yes, the gmon.out file is being generated.  The post was that the call-graph data that gcc and other compilers tend to place in the gmon.out file is not being populated by the ifort compiler.

0 Kudos
Kenneth_C_Intel
Employee
1,073 Views

What version of gprof are you using? and does this happen with every program or just one? 

I am able to get call graph data using that version of the compiler and GNU gprof version 2.20.51.0.2-5.28 

 

0 Kudos
ereisch
New Contributor II
1,073 Views

Hmm.....that's interesting.  When I generate a small program and compile/link it, I get the expected behavior.  But when I run a larger, more complex program, I don't get it.  I'll continue to try to narrow down to get a reproducer.

0 Kudos
Kenneth_C_Intel
Employee
1,073 Views

Any luck with reproducing this issue ?

 

0 Kudos
Reply