Re: [petsc-users] MatCreate performance

2019-03-11 Thread Mark Adams via petsc-users
The PETSc logs print the max time and the ratio max/min. On Mon, Mar 11, 2019 at 8:24 AM Ale Foggia via petsc-users < petsc-users@mcs.anl.gov> wrote: > Hello all, > > Thanks for your answers. > > 1) I'm working with a matrix with a linear size of 2**34, but it's a > sparse matrix, and the number

Re: [petsc-users] MatCreate performance

2019-03-08 Thread Mark Adams via petsc-users
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@mcs.anl.gov> wrote: > Hello all, > > I have a problem

Re: [petsc-users] MatCreate performance

2019-03-08 Thread Smith, Barry F. via petsc-users
https://www.mcs.anl.gov/petsc/documentation/faq.html#efficient-assembly > On Mar 8, 2019, at 9:19 AM, Ale Foggia via petsc-users > 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

Re: [petsc-users] MatCreate performance

2019-03-08 Thread Jed Brown via petsc-users
This is very unusual. MatCreate() does no work, merely dup'ing a communicator (or referencing an inner communicator if this is not the first PetscObject on the provided communicator). What size matrices are you working with? Can you send some performance data and (if feasible) a reproducer?