[petsc-users] Using PETSc with GPU

Matthew Knepley knepley at gmail.com
Fri Mar 15 16:54:02 CDT 2019


On Fri, Mar 15, 2019 at 5:30 PM Yuyun Yang via petsc-users <
petsc-users at mcs.anl.gov> wrote:

> Hello team,
>
>
>
> Our group is thinking of using GPUs for the linear solves in our code,
> which is written in PETSc. I was reading the 2013 book chapter on
> implementation of PETSc using GPUs but wonder if there is any more updated
> reference that I check out? I also saw one example cuda code online (using
> thrust), but would like to check with you if there is a more complete
> documentation of how the GPU implementation is done?
>

Have you seen this page? https://www.mcs.anl.gov/petsc/features/gpus.html

Also, before using GPUs, I would take some time to understand what you
think the possible benefit can be.
For example, there is almost no benefit is you use BLAS1, and you would
have a huge maintenance burden
with a different toolchain. This is also largely true for SpMV, since the
bandwidth difference between CPUs
and GPUs is now not much. So you really should have some kind of flop
intensive (BLAS3-like) work in there
somewhere or its hard to see your motivation.

  Thanks,

     Matt


>
>
> Thanks very much!
>
>
>
> Best regards,
>
> Yuyun
>


-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener

https://www.cse.buffalo.edu/~knepley/ <http://www.cse.buffalo.edu/~knepley/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20190315/77f5852f/attachment.html>


More information about the petsc-users mailing list