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 <[email protected]> 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
>

Reply via email to