[petsc-users] MatCreate performance

Mark Adams mfadams at lbl.gov
Fri Mar 8 16:16:15 CST 2019


MatCreate is collective so you want to check that it is not seeing load
imbalance from earlier code.

And duplicating communicators can be expensive on some systems.

On Fri, Mar 8, 2019 at 10:21 AM Ale Foggia via petsc-users <
petsc-users at mcs.anl.gov> wrote:

> Hello all,
>
> I have a problem with the scaling of the MatCreate() function. I wrote a
> code to diagonalize sparse matrices and I'm running it in parallel. I've
> observed a very bad speedup of the code and it's given by the MatCreate
> part of it: for a fixed matrix size, when I increase the number of
> processes the time taken by the function also increases. I wanted to know
> if you expect this behavior or if maybe there's something wrong with my
> code. When I go to (what I consider) very big matrix sizes, and depending
> on the number of mpi processes, in some cases, MatCreate takes more time
> than the time the solver takes to solve the system for one eigenvalue or
> the time it takes to set up the values.
>
> Ale
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20190308/b4bd8d6f/attachment.html>


More information about the petsc-users mailing list