Good profiler for Fortran and MPI

后端 未结 6 1949
一向
一向 2020-11-28 12:36

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

6条回答
  •  北海茫月
    2020-11-28 13:08

    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
    

提交回复
热议问题