[petsc-users] Performance differences between PETSc4py and PETSc on C

Matthew Knepley knepley at gmail.com
Thu Aug 13 20:43:23 CDT 2020


On Thu, Aug 13, 2020 at 9:42 PM Nidish <nb25 at rice.edu> wrote:

> Hello,
>
> I'm wondering if any performance studies have been conducted between
> codes written using PETSc on C versus Python implementations using
> PETSc4py. Other than this, I'd really appreciate it if someone can give
> perspectives on the drawbacks/advantages on opting for either for code
> development.
>

No PETSc code is in Python, so there is no difference as long as you do not
call PETSc
function millions of times from Python. It should always be possible to
operate at the right
granularity.

  Thanks,

     Matt


> Thank you,
> Nidish
>


-- 
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

https://www.cse.buffalo.edu/~knepley/ <http://www.cse.buffalo.edu/~knepley/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20200813/a06da622/attachment.html>


More information about the petsc-users mailing list