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

Profiling Code

jpf_i
Beginner
299 Views
Beginning with two files, fort.f and its executable
fort.exe, I've tried to profile the executable from
the command line with the following command:

PREP /LV /NOLOGO /INC fort.f(0-0) fort.exe

This gives a fatal error, saying that "no source lines
marked for profiling in fort.exe". If I change
the "fort.exe" to "fort.exe(0-0)", it gives a fatal
error, saying that it "cannot open file fort.exe(0-0)".

I've also tried the following line:

PREP /LV /NOLOGO fort.exe fort.f

This gives the same types of errors.

Anybody know what to do?
0 Kudos
1 Reply
Jugoslav_Dujic
Valued Contributor II
299 Views
You don't need /INC -- it makes sense only with /EXCALL option ("exclude all source files except...").

Make sure that fort.map file is present in the same directory as fort.exe (and has the same date/time) -- I think /profile option for the linker already does that (Project/Settings/Link/Enable Profiling check-box). Map file, as I said, contains mapping between the .exe and corresponding source files.

Jugoslav
0 Kudos
Reply