[petsc-users] Question on usage of PetscMalloc(Re)SetCUDAHost

Sajid Ali sajidsyed2021 at u.northwestern.edu
Tue Aug 25 20:59:37 CDT 2020


Hi Barry,

Thanks for the explanation! Removing the calls to
PetscMalloc(Re)SetCUDAHost solved that issue.

Just to clarify, all PetscMalloc(s) happen on the host and there is no
special PetscMalloc for device memory allocation ? (Say for an operation
sequence PetscMalloc1(N, &ptr), VecCUDAGetArray(cudavec, &ptr) )

Thank You,
Sajid Ali | PhD Candidate
Applied Physics
Northwestern University
s-sajid-ali.github.io
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20200825/6ef381d9/attachment.html>


More information about the petsc-users mailing list