[petsc-users] Ghost vector with MPIKOKKOS under DMSwarm
MIGUEL MOLINOS PEREZ
mmolinos at us.es
Mon Jan 19 12:22:16 CST 2026
I’ll check the documentation more carefully to see if I can find this.
Thanks,
Miguel
On Jan 19, 2026, at 6:42 PM, Matthew Knepley <knepley at gmail.com> wrote:
On Mon, Jan 19, 2026 at 12:19 PM MIGUEL MOLINOS PEREZ <mmolinos at us.es<mailto:mmolinos at us.es>> wrote:
I don’t think so because DMSwarm data is allocated on host. This is right Matt?
I believe there is code in there to move it if you give a device type.
Thanks,
Matt
Thanks,
Miguel
On Jan 19, 2026, at 5:44 PM, Junchao Zhang <junchao.zhang at gmail.com<mailto:junchao.zhang at gmail.com>> wrote:
With VecCreateGhostWithArray, do you already have the array ready on device?
--Junchao Zhang
On Mon, Jan 19, 2026 at 6:56 AM MIGUEL MOLINOS PEREZ <mmolinos at us.es<mailto:mmolinos at us.es>> wrote:
Dear all,
I have a question about using DMSwarm data with Kokkos-enabled vectors.
My particle data (including ghost particles) are stored in a DMSwarm and for solver purposes I generate PETSc vectors using VecCreateGhostWithArray. I would like to use VecMPIKOKKOS for MPI+GPU computations. Am I correct that DMSwarm field memory cannot be directly wrapped into a VecMPIKOKKOS using VecCreateGhostWithArray or VecPlaceArray? Any idea on how to proceed?
Thanks in advance.
Best,
Miguel
--
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!dRaNaXfldNFi0stMY3wHDRXGeDjeFBpWj7Um9N-tDX7Z8BYqIaU08uflkdGL08hjG3x6PFSmxQ_smEbZ2nSgjA$ <https://urldefense.us/v3/__http://www.cse.buffalo.edu/*knepley/__;fg!!G_uCfscf7eWS!dRaNaXfldNFi0stMY3wHDRXGeDjeFBpWj7Um9N-tDX7Z8BYqIaU08uflkdGL08hjG3x6PFSmxQ_smEZoTJAixQ$ >
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20260119/8bc4963a/attachment-0001.html>
More information about the petsc-users
mailing list