Which profiler do you use for Fortran code base with MPI in it? gprof doesn\'t seem to be working correctly. Sun Studio Analyzer only returns the timings for the C/C++ syste
When the questioner says "gprof doesn't seem to be working correctly", perhaps he's referring to the fact that N MPI processes might clobber the gmon.out file. In that case, the (undocumented) GMON_OUT_PREFIX environment variable might make gprof more useful:
$ export GMON_OUT_PREFIX=gmon.out
$ mpiexec -np 4 cpi