Re: [petsc-dev] Controlling matrix type on different levels of multigrid hierarchy? (Motivation is GPUs)

2019-06-12 Thread Smith, Barry F. via petsc-dev
> On Jun 12, 2019, at 2:55 PM, Matthew Knepley wrote: > > On Wed, Jun 12, 2019 at 3:41 PM Smith, Barry F. via petsc-dev > wrote: > > You'll never benefit from having coarser levels on the CPU but I guess you > need a general mechanism to try and see that for yourself. > > I think it

Re: [petsc-dev] Controlling matrix type on different levels of multigrid hierarchy? (Motivation is GPUs)

2019-06-12 Thread Smith, Barry F. via petsc-dev
You'll never benefit from having coarser levels on the CPU but I guess you need a general mechanism to try and see that for yourself. I think it should be a property of the DM and never let the PCMG see it. So something like DMSetUseGPUWhen(dm, gpuvectype, gpumattype,localsize) the