Welcome, Guest
Username: Password: Remember me

TOPIC: Gprof or any performance analysis for Telemac2D

Gprof or any performance analysis for Telemac2D 5 years 9 months ago #32812

  • nguyenblue
  • nguyenblue's Avatar
Hello
I need to execute performance analysis of Telemac2d, but the tool GPROF doesn't work with Telemac.

My steps are:
(1) add option for mpif90 like this:
cmd_obj : mpif90 -c -pg [fflags_debug_gfo] -O0 -DHAVE_MPI [fflags_gfo] <mods> <incs> <f95name>

(2) run the program: ./out_user_fortran.

(3) run gprof out_user_fortran, and then it gives error "gmon.out: No such file or directory"

my gprof works well like this example:
people.sc.fsu.edu/~jburkardt/f_src/gprof/gprof.html

I don't know why gprof can not profile Telemac executable file.

Do you have any hint for me or does anyone run any profiling tool(s) by chance?

Thank you in advance
The administrator has disabled public write access.

Gprof or any performance analysis for Telemac2D 5 years 9 months ago #32813

  • nguyenblue
  • nguyenblue's Avatar
Awesome
I have a solution.

I have to edit this one:
cmd_obj_c : gcc -pg -c <srcName> -o <objName>

along

cmd_obj : mpif90 -c -pg [fflags_debug_gfo] -O0 -DHAVE_MPI [fflags_gfo] <mods> <incs> <f95name>


And now it works! ^_^
The administrator has disabled public write access.

Gprof or any performance analysis for Telemac2D 5 years 9 months ago #32844

  • nguyenblue
  • nguyenblue's Avatar
I almost forgot an additional edited option:
cmd_exe : mpifort -pg [fflags_gfo] -lpthread -lm -o <exename> <objs> <libs>
The administrator has disabled public write access.

The open TELEMAC-MASCARET template for Joomla!2.5, the HTML 4 version.