[petsc-users] Question on using VECCUDA with VECGHOST

Matthew Knepley knepley at gmail.com
Fri Sep 26 07:51:42 CDT 2025


On Fri, Sep 26, 2025 at 2:54 AM 岳新海 <12332508 at mail.sustech.edu.cn> wrote:

> Dear PETSc Team,
>
> I am currently working on a cluster where I would like to use PETSc with
> CUDA support. In particular, I am interested in whether it is possible to
> combine VECCUDA with VECGHOST.
>
> I have searched through the documentation and but have not found explicit
> examples. May I ask:
>
>
>    - Has VECCUDA been used successfully together with VECGHOST?
>
>
VECGHOST just uses two regular vectors (a local form and a ghosted form),
and VecScatter to map between them. Those vectors can be of any type.


>
>    - If so, are there recommended approaches, examples, or best practices
>    to follow?
>
> I don't think you have to do anything special. Have you had a problem?

  Thanks,

     Matt


> Any guidance or references would be greatly appreciated.
>
> Best regards,
> Xinhai
>
>
>
>
> 岳新海
>
> 南方科技大学/学生/研究生/2023级研究生
>
> 广东省深圳市南山区学苑大道1088号
>
>


-- 
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://urldefense.us/v3/__https://www.cse.buffalo.edu/*knepley/__;fg!!G_uCfscf7eWS!Z9O6linS5rsoZ4zfmavdqHZKKdI8XmUvjqUaU0AOvQ-DjDvowFwa4-uIjkH_1v4TVLEQzTay7Shiqt8XYfbv$  <https://urldefense.us/v3/__http://www.cse.buffalo.edu/*knepley/__;fg!!G_uCfscf7eWS!Z9O6linS5rsoZ4zfmavdqHZKKdI8XmUvjqUaU0AOvQ-DjDvowFwa4-uIjkH_1v4TVLEQzTay7ShiqnKL0os_$ >
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20250926/b233bf53/attachment-0001.html>


More information about the petsc-users mailing list