Re: [petsc-dev] odd log behavior

2022-05-16 Thread Mark Adams
Ok thanks, And looking at the actual tests that I am doing more carefully I am not seeing much difference in the numbers that I care about with or without the GPU timers. And FWIW, from a user experience point of view, having -log_view present you with a sea of nans by default is a bit

Re: [petsc-dev] odd log behavior

2022-05-16 Thread Barry Smith
Mark, Yes, Jed has already asked for ways to select certain operations at runtime that would get timed via the GPU timer. I am not sure of the ideal way to handle it. One possibility is PetscLogGpuTimeEvent(event number) which indicates events you want the time logged for. Another is

Re: [petsc-dev] Telescope usage

2022-05-16 Thread Dave May
On Tue, 17 May 2022 at 00:12, Matthew Knepley wrote: > On Mon, May 16, 2022 at 9:59 AM Loic Gouarin < > loic.goua...@polytechnique.edu> wrote: > >> Le 16/05/2022 à 21:54, Barry Smith a écrit : >> >> >> >> On May 16, 2022, at 3:50 PM, Loic Gouarin >> wrote: >> >> Thanks Barry for your quick

Re: [petsc-dev] odd log behavior

2022-05-16 Thread Mark Adams
I am not sure I understand the logic, we print the ratio of max/min. I report max and look at the ratio to see if I might be catching some load imbalance or whatever. Is there a problem with that workflow? I assume there is or you would not have done this, so can I add a method that I think also

Re: [petsc-dev] Telescope usage

2022-05-16 Thread Matthew Knepley
On Mon, May 16, 2022 at 9:59 AM Loic Gouarin wrote: > Le 16/05/2022 à 21:54, Barry Smith a écrit : > > > > On May 16, 2022, at 3:50 PM, Loic Gouarin > wrote: > > Thanks Barry for your quick reply. > Le 16/05/2022 à 21:41, Barry Smith a écrit : > > > Loic, > > From your code it looks like

Re: [petsc-dev] Telescope usage

2022-05-16 Thread Loic Gouarin
Le 16/05/2022 à 21:54, Barry Smith a écrit : On May 16, 2022, at 3:50 PM, Loic Gouarin wrote: Thanks Barry for your quick reply. Le 16/05/2022 à 21:41, Barry Smith a écrit :   Loic,     From your code it looks like you are using a DM. Is it a DMDA or a shell DM? If it is a DMDA then

Re: [petsc-dev] Telescope usage

2022-05-16 Thread Barry Smith
> On May 16, 2022, at 3:50 PM, Loic Gouarin > wrote: > > Thanks Barry for your quick reply. > > Le 16/05/2022 à 21:41, Barry Smith a écrit : >> >> Loic, >> >> From your code it looks like you are using a DM. Is it a DMDA or a shell >> DM? If it is a DMDA then the process is intended

Re: [petsc-dev] Telescope usage

2022-05-16 Thread Loic Gouarin
Thanks Barry for your quick reply. Le 16/05/2022 à 21:41, Barry Smith a écrit :   Loic,     From your code it looks like you are using a DM. Is it a DMDA or a shell DM? If it is a DMDA then the process is intended to be pretty straightforward. PCTELESCOPE should create a new DMDA that has

Re: [petsc-dev] Telescope usage

2022-05-16 Thread Barry Smith
Loic, From your code it looks like you are using a DM. Is it a DMDA or a shell DM? If it is a DMDA then the process is intended to be pretty straightforward. PCTELESCOPE should create a new DMDA that has the same properties as the coarse grid DMDA but lives on a smaller number of ranks.

[petsc-dev] Telescope usage

2022-05-16 Thread Loic Gouarin
Hello, I could have posted my message on the user list but it seems to me that it's more in the petsc development part. Don't hesitate to tell me if I'm wrong. I am developing a code called cafes that studies fluid-particle interactions in a Stokes fluid. For that, we implemented the whole