Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Profiler

Intel_C_Intel
Employee
848 Views
I am trying to profile some code, but have a few questions.

First, it still appears that the profiler lumps all function timing into the first routine in a file. It looks like I need to split my files up into pieces and modify my project to get any meaningful timing results. Has this been fixed yet?

Can someone tell me how to find out what functions like __OtsFill (sfill.obj) do? I don't recognize the name and I assume this is coming from the run-time libraries.

Does the /STACK option work with PREP? I seem to always get a depth of 2, even if I specify something else.
0 Kudos
5 Replies
Steven_L_Intel1
Employee
848 Views
The "lumping" problem is caused by a bug in the profiler that MS has told us it will not fix. You can work around it by compiling your application with /iface:cref (Settings..Fortran..Calling mechanism..C, by reference).

The Ots routines are from the run-time library. OtsFill fills a section of memory with a byte value (usually 0).

I don't know the answer to your /STACK question.

Steve
0 Kudos
ktmic
Beginner
848 Views
Sorry, but /iface:cref does not seem to make it. To get individual
function timing I still have to split my program.

And can the profiler be trusted to reflect the actual execution times?
It seems to take 50 times longer to execute than without profiling?


Michael
0 Kudos
Steven_L_Intel1
Employee
848 Views
If you ask only for timings, the profiler shouldn't materially increase execution time. If you ask for other things, such as function counts, it will.

You may want to download the free trial of Intel's VTune Performance Analyzer - it's lightyears better than the MS profiler.

Steve
0 Kudos
ktmic
Beginner
848 Views
Thank you for the reply. I shall look at the options, just used the
defaults.

I actually am the owner of an earlier version of Vtune and have tested
never versions. The last I tried did NOT have the all-important ability
to give the time (fraction) used in function + child, but only that for
the individual function.

I would appreciate to know if this feature is available in more recent
versions of VTune.

Regards,
Michael
0 Kudos
Steven_L_Intel1
Employee
848 Views
I'm not familiar with the details of VTune - you can download a free trial version and try it yourself.

Steve
0 Kudos
Reply