[petsc-users] Amortizing calls to PetscOptionsFindPair_Private()

Matthew Knepley knepley at gmail.com
Sat Jan 16 08:41:44 CST 2016


On Sat, Jan 16, 2016 at 7:12 AM, Griffith, Boyce Eugene <
boyceg at email.unc.edu> wrote:

>
> On Jan 16, 2016, at 12:34 AM, Bhalla, Amneet Pal S <amneetb at live.unc.edu>
> wrote:
>
>
>
> On Jan 15, 2016, at 5:40 PM, Matthew Knepley <knepley at gmail.com> wrote:
>
> I am inclined to try
> Barry's experiment first, since this may have bugs that we have not yet
> discovered.
>
>
> Ok, I tried Barry’s suggestion. The runtime for
> PetscOptionsFindPair_Private() fell from 14% to mere 1.6%.
> If I am getting it right, it’s the petsc options in the KSPSolve() that is
> sucking up nontrivial amount of time (14 - 1.6)
> and not KSPSetFromOptions() itself (1.6%).
>
>
> Barry / Matt / Jed, if we were using KSPReset here and reusing KSPs, would
> that also bypass these calls to PetscOptionsXXX?
>

No, we have to fix KSPSolve(). We will do it right now.

  Thanks,

    Matt


> Thanks,
>
> -- Boyce
>



-- 
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/20160116/9310d2c4/attachment.html>


More information about the petsc-users mailing list