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".
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,
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
As the previous reply said, it might be interesting to know whether you can step through the internal subroutine (if that is still the problem you are discussing) in a debugger, as another check on whether the debug symbol connections are satisfactory. Also, replacing -ip with -fno-inline-functions, and removing -parallel, might be interesting tests. It still looks like you may have to submit a problem report with a reproducer, as chatting without specifics has its limitations.