- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello everyone,
I am trying to profile my application with VTune Amplifier 2018.
If I compile my application with GCC everything works fine. However with Intel fortran and optimizations higher or equal to -O1 VTune fails to find the debug symbols, i.e. compiling with
-g -O2
fails to find the debug symbols, and so cannot display the source code of the functions, while using
-g -O0
works fine. If I collect data with the optimized code, then recompile with -g -O0 and then re-resolve the collected data, debug symbols are found correctly, however it is quite inconvenient.
How can I get both an optimized executable and correct debug symbols compiling with intel fortran?
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
What compiler version is it? Can you check that addr2line Linux utility is able to show function names and source lines for the binary file built with -O2? Can you reproduce the issue on another (some "hello word" application) and attach it?
Re-resolving VTune result with recompiled binaries is not recommended because it could lead to wrong attribution of performance data to functions and source lines.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page