[petsc-dev] Force synchronization of CUSP vector

Jed Brown jed at jedbrown.org
Mon Feb 2 16:00:30 CST 2015


"Jose E. Roman" <jroman at dsic.upv.es> writes:

> I would like to force the copy of a VECCUSP from/to the GPU. I need this in user code, in particular from within a shell matrix MatMult.
>
> Both VecCUSPCopyToGPU() and VecCUSPCopyToGPU_Public() are declared PETSC_INTERN in a private header. The only public function is VecCUSPCopyToGPUSome_Public(). In the "From" variants, VecCUSPCopyFromGPU() is PETSC_EXTERN but declared in a private header.
>
> Shouldn't these functions be public?

The idea is that you use VecCUSPGetArray* and it will be copied if needed.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20150202/c7cb4dcd/attachment.sig>


More information about the petsc-dev mailing list