[petsc-users] Execution time of the code

Smith, Barry F. bsmith at mcs.anl.gov
Sat Sep 1 16:02:49 CDT 2018


6.196e-01

But that is a relatively meaningless number. What is more important is the time in the various events of the code that is printed further down. Like SNESSolve(), KSPSolve(), ...

   Barry


> On Sep 1, 2018, at 3:34 PM, Fazlul Huq <huq2090 at gmail.com> wrote:
> 
> Hello PETSc Developers, 
> 
> I know that to know the execution time of code I have to run code with -log_view and I also read chapter 13 (Profiling) of the user-manual, but I can't figure out what is the total execution time of my code from the information printed on the screen. I got Time (sec) there but there exist sub-categories like Max, Max/Min, Avg and Total. 
> My simple question (and may be stupid question!) is, what is the total execution time of the code here? 
> (Following is the part of the information printed on the screen)
> 
> jimmy at dave:~/projects/petsc/src/ksp/ksp/examples/tutorials$ mpiexec -n 4 ./ex10 -f0 medium -f1 arco6 -ksp_gmres_classicalgramschmidt -log_view -mat_type baij -matload_block_size 3 -pc_type bjacobi -options_left
> Number of iterations = 19
> Residual norm 1.088292e-05
> Number of iterations = 59
> Residual norm 3.871022e-02
> ************************************************************************************************************************
> ***             WIDEN YOUR WINDOW TO 120 CHARACTERS.  Use 'enscript -r -fCourier9' to print this document            ***
> ************************************************************************************************************************
> 
> ---------------------------------------------- PETSc Performance Summary: ----------------------------------------------
> 
> ./ex10 on a arch-linux2-c-debug named dave with 4 processors, by jimmy Sat Sep  1 13:41:14 2018
> Using Petsc Release Version 3.9.2, unknown 
> 
>                          Max       Max/Min        Avg      Total 
> Time (sec):           6.196e-01      1.00002   6.196e-01
> Objects:              1.060e+02      1.00000   1.060e+02
> Flop:                 2.361e+08      1.00684   2.353e+08  9.413e+08
> Flop/sec:            3.811e+08      1.00682   3.798e+08  1.519e+09
> MPI Messages:         2.360e+02      1.34857   2.061e+02  8.245e+02
> MPI Message Lengths:  1.256e+07      2.24620   4.071e+04  3.357e+07
> MPI Reductions:       2.160e+02      1.00000
> 
> Thanks.
> 
> Sincerely,
> Huq



More information about the petsc-users mailing list