<div dir="ltr"><div dir="ltr">On Fri, Sep 26, 2025 at 2:54 AM 岳新海 <<a href="mailto:12332508@mail.sustech.edu.cn">12332508@mail.sustech.edu.cn</a>> wrote:</div><div class="gmail_quote gmail_quote_container"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><font><p>Dear PETSc Team,</p>
<p>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 <code>VECCUDA</code> with <code>VECGHOST</code>.</p>
<p>I have searched through the documentation and but have not found explicit examples. May I ask:</p><p></p><ul><li>Has <code>VECCUDA</code> been used successfully together with <code>VECGHOST</code>?</li></ul></font></div></blockquote><div><br></div><div>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.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><font><ul><li>If so, are there recommended approaches, examples, or best practices to follow?</li></ul></font></div></blockquote><div>I don't think you have to do anything special. Have you had a problem?</div><div><br></div><div> Thanks,</div><div><br></div><div> Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><font><p></p>
<p>Any guidance or references would be greatly appreciated.</p>
<p>Best regards,<br>Xinhai</p></font></div><div><u></u><div><font><br></font><font><br></font><font><br></font><font><br></font><div style="color:rgb(144,144,144);font-family:"Arial Narrow";font-size:12px"></div></div><div style="font-size:14px;font-family:Verdana;color:rgb(0,0,0)"><div><div style="width:305px;height:35px;line-height:35px;margin:20px 0px 0px"><img src="https://exmail.qq.com/cgi-bin/viewfile?type=logo&domain=mail.sustech.edu.cn"></div><div style="margin:10px 0px 0px"><h4 style="margin:0px;font-size:14px;font-weight:bold;line-height:28px;zoom:1">岳新海</h4><p style="margin:0px;line-height:22px;color:rgb(160,160,160)"></p><p style="margin:0px;line-height:22px;color:rgb(160,160,160)">南方科技大学/学生/研究生/2023级研究生</p><p style="margin:0px;line-height:22px;color:rgb(160,160,160)"></p><p style="margin:0px;line-height:22px;color:rgb(160,160,160)">广东省深圳市南山区学苑大道1088号</p></div></div></div><u></u></div><div> </div><div><u></u><u></u></div></blockquote></div><div><br clear="all"></div><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div><div><br></div><div><a href="https://urldefense.us/v3/__http://www.cse.buffalo.edu/*knepley/__;fg!!G_uCfscf7eWS!Z9O6linS5rsoZ4zfmavdqHZKKdI8XmUvjqUaU0AOvQ-DjDvowFwa4-uIjkH_1v4TVLEQzTay7ShiqnKL0os_$" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div>