<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class=""><br class=""></div> We seem to be emphasizing using MatSetValuesCOO() for GPUs (can also be for CPUs); in the main branch you can find a simple example in <span style="font-family: Menlo; font-size: 14px;" class="">src/mat/tutorials/ex18.c</span> which demonstrates its use.<div class=""><br class=""></div><div class=""> Barry</div><div class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Mar 17, 2022, at 4:46 PM, Sajid Ali Syed <<a href="mailto:sasyed@fnal.gov" class="">sasyed@fnal.gov</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;" class="">Hi PETSc-developers,<br class=""><br class="">Is it possible to use VecSetValues with distributed-memory CUDA & Kokkos vectors from the device, i.e. can I call VecSetValues with GPU memory pointers and expect PETSc to figure out how to stash on the device it until I call VecAssemblyBegin (at which point PETSc could use GPU-aware MPI to populate off-process values) ?<br class=""><br class="">If this is not currently supported, is supporting this on the roadmap? Thanks in advance!<br class=""></div><div style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 18px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;" class=""><br class=""></div><div id="Signature" class=""><div class=""><div class=""></div><div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;" class="">Thank You,<br class=""><div dir="ltr" class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div style="font-size: 12.8px;" class="">Sajid Ali (he/him) | Research Associate<br class=""></div><div style="font-size: 12.8px;" class="">Scientific Computing Division<br class=""></div><div style="font-size: 12.8px;" class="">Fermi National Accelerator Laboratory<br class=""></div><span style="font-size: 12.8px;" class=""><a href="http://s-sajid-ali.github.io/" target="_blank" class="">s-sajid-ali.github.io</a></span></div></div></div></div></div></div></div></div></div></div></div></blockquote></div><br class=""></div></body></html>