[petsc-dev] PetscMallocAlign for Cuda

Mark Adams mfadams at lbl.gov
Wed Sep 2 12:48:31 CDT 2020


OK good to know. I will now worry even less about making this very complete.

On Wed, Sep 2, 2020 at 1:33 PM Barry Smith <bsmith at petsc.dev> wrote:

>
>   Mark,
>
>    Currently you use directly the Nvidia provided mallocs cudaMalloc for
> all mallocs on the GPU. See for example aijcusparse.cu.
>
>    I will be using Stefano's work to start developing a unified PETSc
> based system for all memory management but don't wait for that.
>
>    Barry
>
>
> > On Sep 2, 2020, at 8:58 AM, Mark Adams <mfadams at lbl.gov> wrote:
> >
> > PETSc mallocs seem to boil down to PetscMallocAlign. There are switches
> in here but I don't see a Cuda malloc. THis would seem to be convenient if
> I want to create an Object entirely on Cuda or any device.
> >
> > Are there any thoughts along these lines or should I just duplicate Mat
> creation, for instance, by hand?
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20200902/3a237713/attachment.html>


More information about the petsc-dev mailing list