[petsc-users] Profile a matrix-free solver.

Song Gao song.gao2 at mail.mcgill.ca
Fri Jan 15 14:34:58 CST 2016


Thanks. I'll try to improve "my code"

2016-01-15 14:56 GMT-05:00 Jed Brown <jed at jedbrown.org>:

> Matthew Knepley <knepley at gmail.com> writes:
> > The way I read this, you are taking about 23 iterates/solve, and most of
> > your work is residual computation which should
> > be highly parallelizable/vectorizable. This seems great to me.
>
> This in the sense that it's up to you to determine whether your
> matrix-free residual and preconditioning code is fast.  This profile
> merely says that almost all of the run-time is in *your code*.  If your
> code is fast, then this is good performance.  If you can use a different
> algorithm to converge in fewer iterations, or a different representation
> to apply the operator faster, then you could do better.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20160115/95cf10cf/attachment.html>


More information about the petsc-users mailing list