[petsc-users] Enquiry regarding log summary results
    TAY wee-beng 
    zonexo at gmail.com
       
    Tue Oct  2 16:02:20 CDT 2012
    
    
  
On 27/9/2012 1:44 PM, Matthew Knepley wrote:
> On Thu, Sep 27, 2012 at 3:49 AM, TAY wee-beng <zonexo at gmail.com 
> <mailto:zonexo at gmail.com>> wrote:
>
>     Hi,
>
>     I'm doing a log summary for my 3d cfd code. I have some questions:
>
>     1. if I'm solving 3 linear equations using ksp, is the result
>     given in the log summary the total of the 3 linear eqns'
>     performance? How can I get the performance for each individual eqn?
>
>
> Use logging stages: 
> http://www.mcs.anl.gov/petsc/petsc-dev/docs/manualpages/Profiling/PetscLogStagePush.html
I tried to follow the steps from the manual for my Fortan code using:
/call PetscInitialize(PETSC_NULL_CHARACTER,ierr)//
//
//... 1st stage - solving momentum eqn//- run 1st logging
//
//call PetscLogStagePush(1,ierr)//
//
//... 2nd stag - solve poisson eqn//- run 2nd logging
//
//call PetscLogStagePop//(ierr)//
//
//...//
//
//call PetscFinalize(ierr)/
but then I got the error:
  Argument out of range!
[33]PETSC ERROR: Invalid stage 1 should be in [0,1)!
...
How should I use the syntax to allow 2 stages logging?
Tks!
>     2. If I run my code for 10 time steps, does the log summary gives
>     the total or avg performance/ratio?
>
>
> Total.
>
>     3. Besides PETSc, I'm also using HYPRE's native geometric MG
>     (Struct) to solve my Cartesian's grid CFD poisson eqn. Is there
>     any way I can use PETSc's log summary to get HYPRE's performance?
>     If I use boomerAMG thru PETSc, can I get its performance?
>
>
> If you mean flops, only if you count them yourself and tell PETSc 
> using 
> http://www.mcs.anl.gov/petsc/petsc-dev/docs/manualpages/Profiling/PetscLogFlops.html
>
> This is the disadvantage of using packages that do not properly 
> monitor things :)
>
>     Matt
>
>
>     -- 
>     Yours sincerely,
>
>     TAY wee-beng
>
>
>
>
> -- 
> What most experimenters take for granted before they begin their 
> experiments is infinitely more interesting than any results to which 
> their experiments lead.
> -- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20121002/47e3792b/attachment.html>
    
    
More information about the petsc-users
mailing list