Re: [petsc-dev] GAMG and custom MatMults in smoothers

2018-07-02 Thread Vaclav Hapla
Barry wrote: > This could get ugly real fast, for example, for vector operations, there > may be dozens of named vectors and each one gets its own logging? You'd have > to make sure that only the objects you care about get named, is that possible? > >I don't know if there is a good

Re: [petsc-dev] delete old next branches

2018-07-02 Thread Satish Balay
deleted now. Satish On Thu, 28 Jun 2018, Satish Balay wrote: > Next users, > > Currently we have the following old next branch snapshots saved: > > $ git branch -r |grep next |grep 2 > origin/next-apr-2016 > origin/next-apr-2018 > origin/next-apr-2018-2 > origin/next-jun-2015 >

Re: [petsc-dev] GAMG and custom MatMults in smoothers

2018-07-02 Thread Matthew Knepley
On Mon, Jul 2, 2018 at 7:54 AM Vaclav Hapla wrote: > > > 2. 7. 2018 v 14:48, Matthew Knepley : > > On Mon, Jul 2, 2018 at 3:48 AM Vaclav Hapla > wrote: > >> Barry wrote: >> >> This could get ugly real fast, for example, for vector operations, >> there may be dozens of named vectors and each

Re: [petsc-dev] GAMG and custom MatMults in smoothers

2018-07-02 Thread Matthew Knepley
On Mon, Jul 2, 2018 at 3:48 AM Vaclav Hapla wrote: > Barry wrote: > > This could get ugly real fast, for example, for vector operations, there > may be dozens of named vectors and each one gets its own logging? You'd > have to make sure that only the objects you care about get named, is that >

Re: [petsc-dev] GAMG and custom MatMults in smoothers

2018-07-02 Thread Vaclav Hapla
> 2. 7. 2018 v 14:48, Matthew Knepley : > > On Mon, Jul 2, 2018 at 3:48 AM Vaclav Hapla > wrote: > Barry wrote: >> This could get ugly real fast, for example, for vector operations, there >> may be dozens of named vectors and each one gets its own logging?

Re: [petsc-dev] GAMG and custom MatMults in smoothers

2018-07-02 Thread Stefano Zampini
2018-07-02 11:48 GMT+03:00 Vaclav Hapla : > Barry wrote: > > This could get ugly real fast, for example, for vector operations, there > may be dozens of named vectors and each one gets its own logging? You'd > have to make sure that only the objects you care about get named, is that > possible?

Re: [petsc-dev] GAMG and custom MatMults in smoothers

2018-07-02 Thread Vaclav Hapla
> 2. 7. 2018 v 15:05, Matthew Knepley : > > On Mon, Jul 2, 2018 at 7:54 AM Vaclav Hapla > wrote: > > >> 2. 7. 2018 v 14:48, Matthew Knepley > >: >> >> On Mon, Jul 2, 2018 at 3:48 AM Vaclav Hapla >

Re: [petsc-dev] GAMG and custom MatMults in smoothers

2018-07-02 Thread Vaclav Hapla
> 2. 7. 2018 v 15:20, Stefano Zampini : > > > > 2018-07-02 11:48 GMT+03:00 Vaclav Hapla >: > Barry wrote: >> This could get ugly real fast, for example, for vector operations, there >> may be dozens of named vectors and each one gets its own logging?

Re: [petsc-dev] GAMG and custom MatMults in smoothers

2018-07-02 Thread Matthew Knepley
On Mon, Jul 2, 2018 at 8:28 AM Vaclav Hapla wrote: > 2. 7. 2018 v 15:05, Matthew Knepley : > > On Mon, Jul 2, 2018 at 7:54 AM Vaclav Hapla > wrote: > >> >> >> 2. 7. 2018 v 14:48, Matthew Knepley : >> >> On Mon, Jul 2, 2018 at 3:48 AM Vaclav Hapla >> wrote: >> >>> Barry wrote: >>> >>> This

[petsc-dev] syntax for multiple libs (eg, --with-blaslapack-lib/a --with-blaslapack-lib/b)

2018-07-02 Thread Mark Adams
Satish and Matt, What is the syntax multiple libraries? I have this now but need to addd more files. Thanks, Mark '--with-blaslapack-lib=/opt/intel/compilers_and_libraries_2018.1.163/linux/mkl/lib/intel64/libmkl_intel_thread.a',

Re: [petsc-dev] syntax for multiple libs (eg, --with-blaslapack-lib/a --with-blaslapack-lib/b)

2018-07-02 Thread Satish Balay
On Mon, 2 Jul 2018, Mark Adams wrote: > Satish and Matt, > What is the syntax multiple libraries? I have this now but need to addd > more files. > Thanks, > Mark > > '--with-blaslapack-lib=/opt/intel/compilers_and_libraries_2018.1.163/linux/mkl/lib/intel64/libmkl_intel_thread.a',

Re: [petsc-dev] Valgrind report a bug in PetscOptionsFindPair_Private

2018-07-02 Thread Éric Chamberland
Barry, sorry for the delay... but your patch solved the problem! thanks! Eric Le 18-06-21 à 16:12, Smith, Barry F. a écrit : Fixed in barry/fix-petscstrlcat/maint I also doubled the length of the work strings used in processing options so your options won't get truncated and hence

[petsc-dev] (no subject)

2018-07-02 Thread Smith, Barry F.
The problem with this code from package.py is it rejects a package for a large variety of reasons but cannot print which reason it is rejecting it! Thus we waste hours and tons of emails debugging something that doesn't need to be debugged. Barry # if user did not request option,

Re: [petsc-dev] syntax for multiple libs (eg, --with-blaslapack-lib/a --with-blaslapack-lib/b)

2018-07-02 Thread Mark Adams
On Mon, Jul 2, 2018 at 6:24 PM Satish Balay wrote: > On Mon, 2 Jul 2018, Mark Adams wrote: > > > Satish and Matt, > > What is the syntax multiple libraries? I have this now but need to addd > > more files. > > Thanks, > > Mark > > > > >

Re: [petsc-dev] GAMG and custom MatMults in smoothers

2018-07-02 Thread Matthew Knepley
On Mon, Jul 2, 2018 at 9:33 AM Vaclav Hapla wrote: > > > 2. 7. 2018 v 15:50, Matthew Knepley : > > On Mon, Jul 2, 2018 at 8:28 AM Vaclav Hapla > wrote: > >> 2. 7. 2018 v 15:05, Matthew Knepley : >> >> On Mon, Jul 2, 2018 at 7:54 AM Vaclav Hapla >> wrote: >> >>> >>> >>> 2. 7. 2018 v 14:48,

Re: [petsc-dev] GAMG and custom MatMults in smoothers

2018-07-02 Thread Stefano Zampini
> I don't see why this should lead to deadlock? With current class-wise > events you can already have many simultaneous instances of the same event > at once. > > Attached a MVE to better explain myself. If you run with p processes, you will see what I mean -- Stefano #include "petsc.h" int

Re: [petsc-dev] GAMG and custom MatMults in smoothers

2018-07-02 Thread Vaclav Hapla
Thanks for the MWE. But it behaves exactly as I would anticipate, see log. I think that naming the event differently for each rank is not good but fortunately PETSc just ignores this for rank > 0. Important is the event id which is the same. I correctly get that the time spent in this event is

Re: [petsc-dev] GAMG and custom MatMults in smoothers

2018-07-02 Thread Stefano Zampini
The intent was not to show you a deadlock; was to provide you evidence that the PetscLogEvent model is meant to have the same event created collectively (hopefully at class registration) on all processes. See also PetscLogViewDefault 2018-07-02 18:45 GMT+03:00 Vaclav Hapla : > Thanks for the

Re: [petsc-dev] GAMG and custom MatMults in smoothers

2018-07-02 Thread Vaclav Hapla
> 2. 7. 2018 v 15:50, Matthew Knepley : > > On Mon, Jul 2, 2018 at 8:28 AM Vaclav Hapla > wrote: >> 2. 7. 2018 v 15:05, Matthew Knepley > >: >> >> On Mon, Jul 2, 2018 at 7:54 AM Vaclav Hapla > >

Re: [petsc-dev] GAMG and custom MatMults in smoothers

2018-07-02 Thread Vaclav Hapla
OK, now I got you. So I think it's actually not that important when they are created but whether and in which order they are registered on different ranks (see attached edited MWE). Yes, that's a relevant concern I must admit, mainly for things working with subcomms.ThanksVaclav[0] event1

Re: [petsc-dev] GAMG and custom MatMults in smoothers

2018-07-02 Thread Matthew Knepley
On Mon, Jul 2, 2018 at 10:19 AM Vaclav Hapla wrote: > 2. 7. 2018 v 16:38, Matthew Knepley : > > On Mon, Jul 2, 2018 at 9:33 AM Vaclav Hapla > wrote: > >> >> >> 2. 7. 2018 v 15:50, Matthew Knepley : >> >> On Mon, Jul 2, 2018 at 8:28 AM Vaclav Hapla >> wrote: >> >>> 2. 7. 2018 v 15:05, Matthew

Re: [petsc-dev] GAMG and custom MatMults in smoothers

2018-07-02 Thread Vaclav Hapla
> 2. 7. 2018 v 16:38, Matthew Knepley : > > On Mon, Jul 2, 2018 at 9:33 AM Vaclav Hapla > wrote: > > >> 2. 7. 2018 v 15:50, Matthew Knepley > >: >> >> On Mon, Jul 2, 2018 at 8:28 AM Vaclav Hapla >