- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello ,
I'm profiling a code in fortran 90 using VTune Performance Analyzer 9.1 for Linux* build 226 .
I have a file which has a subroutine (E.g. INNER_SUBROUTINE) defined inside another subroutine(E.g. OUTER_SUBROUTINE) and outer subroutine call to inner subroutine.
But when I goes down to function level in VTune it shows me different function name .
When I go down to see the source code vtune giving an error "Cannot open Source view data".
See the sample code below.
SUBROUTINE OUTER_SUBROUTINE(NM)
--------
--------
CALL INNER_SUBROUTINE (NM)
--------
--------
CONTAINS
SUBROUTINE INNER_SUBROUTINE (NM)
--------
--------
END SUBROUTINE INNER_SUBROUTINE
END SUBROUTINE OUTER_SUBROUTINE
Can you please tell me how I can drill down to source of hotspot function for fortran subroutine?
In VTune I see the function name which is formed by module name , outer subsroutine name and inner subroutine name (I observe that it has format__ ). It means we cant find same function name in any of my source files , so VTune giving me error of not able to view data .
Can you please guide me how should I compile (any specific flags to be used ) my application so that I can see the source code of hot spot function in VTune.
Thanking You,
Regards,
Dny
I'm profiling a code in fortran 90 using VTune Performance Analyzer 9.1 for Linux* build 226 .
I have a file which has a subroutine (E.g. INNER_SUBROUTINE) defined inside another subroutine(E.g. OUTER_SUBROUTINE) and outer subroutine call to inner subroutine.
But when I goes down to function level in VTune it shows me different function name .
When I go down to see the source code vtune giving an error "Cannot open Source view data".
See the sample code below.
SUBROUTINE OUTER_SUBROUTINE(NM)
--------
--------
CALL INNER_SUBROUTINE (NM)
--------
--------
CONTAINS
SUBROUTINE INNER_SUBROUTINE (NM)
--------
--------
END SUBROUTINE INNER_SUBROUTINE
END SUBROUTINE OUTER_SUBROUTINE
Can you please tell me how I can drill down to source of hotspot function for fortran subroutine?
In VTune I see the function name which is formed by module name , outer subsroutine name and inner subroutine name (I observe that it has format
Can you please guide me how should I compile (any specific flags to be used ) my application so that I can see the source code of hot spot function in VTune.
Thanking You,
Regards,
Dny
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Dny,
VTune Performance Analyzer 9.1 supports analyzing and viewing the source code of Fortran applications/code.
Could you please let me know which compiler and compiler options you are currently using? Are you using -g in order to produce debug information?
Also if you are using high-level optimizations (e.g: -O2, -O3), does this problem still happen under VTune Analyzer when all optimizations are turned off (e.g: -O0 - inlining could be a problem)?
VTune Performance Analyzer 9.1 supports analyzing and viewing the source code of Fortran applications/code.
Could you please let me know which compiler and compiler options you are currently using? Are you using -g in order to produce debug information?
Also if you are using high-level optimizations (e.g: -O2, -O3), does this problem still happen under VTune Analyzer when all optimizations are turned off (e.g: -O0 - inlining could be a problem)?
Few things to try out maybe
- How does nm show the symbol information?
- Does gdb (or idb) work on this binary as expected? Can you set breakpoints on the inner and outer subroutines and step appropriately?
Thanks
Levent
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi again,
I will also recommend you to check out the "About Symbol and Line Number Information" section in the VTune Analyzer help file for more information.
Thanks
Levent
I will also recommend you to check out the "About Symbol and Line Number Information" section in the VTune Analyzer help file for more information.
Thanks
Levent
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - Levent (Intel)
Hi Dny,
VTune Performance Analyzer 9.1 supports analyzing and viewing the source code of Fortran applications/code.
Could you please let me know which compiler and compiler options you are currently using? Are you using -g in order to produce debug information?
Also if you are using high-level optimizations (e.g: -O2, -O3), does this problem still happen under VTune Analyzer when all optimizations are turned off (e.g: -O0 - inlining could be a problem)?
VTune Performance Analyzer 9.1 supports analyzing and viewing the source code of Fortran applications/code.
Could you please let me know which compiler and compiler options you are currently using? Are you using -g in order to produce debug information?
Also if you are using high-level optimizations (e.g: -O2, -O3), does this problem still happen under VTune Analyzer when all optimizations are turned off (e.g: -O0 - inlining could be a problem)?
Few things to try out maybe
- How does nm show the symbol information?
- Does gdb (or idb) work on this binary as expected? Can you set breakpoints on the inner and outer subroutines and step appropriately?
Thanks
Levent
Hello Sir,
Thanks for your reply.
I'm using icc 11.0.074 for Linux following compiler flags for building my application.
-g -O2 -xSSSE3 -ip -no-prec-div -opt-prefetch -parallel -static
I also observe that nm shows the same symbol information (function name) as VTune shows.
Thanking you,
Regards,
Digambar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - Dny
-g -O2 -xSSSE3 -ip -no-prec-div -opt-prefetch -parallel -static
It still looks like you may have to submit a problem report with a reproducer, as chatting without specifics has its limitations.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page