Question about -log_summary option

Nguyen, Hung V ERDC-ITL-MS Hung.V.Nguyen at usace.army.mil
Wed Oct 28 14:21:41 CDT 2009


Thank you. That's what I guess. I don't plan to profile my own codes. I am
just wondering if I can use it or not.
  
-hung

 


-----Original Message-----
From: petsc-users-bounces at mcs.anl.gov
[mailto:petsc-users-bounces at mcs.anl.gov] On Behalf Of Jed Brown
Sent: Wednesday, October 28, 2009 2:16 PM
To: petsc-users at mcs.anl.gov
Subject: Re: Question about -log_summary option

Nguyen, Hung V ERDC-ITL-MS wrote:
> Hello,
> 
> When running with -log_summary option, I got the information about 
> Flops/sec as below. My question is whether Petsc does counting 
> floating-point operations for the whole application codes or only part with
petsc?

PETSc doesn't magically know what your code is doing.  You can register
events and call PetscLogFlops() if you want to profile your own code.

Jed



More information about the petsc-users mailing list