[petsc-dev] MatPinToCPU

Mark Adams mfadams at lbl.gov
Tue Jul 23 09:12:54 CDT 2019


I've tried to add pining the matrix and prolongator to the CPU on coarse
grids in GAMG with this:

    /* pin reduced coase grid - could do something smarter */
    ierr = MatPinToCPU(*a_Amat_crs,PETSC_TRUE);CHKERRQ(ierr);
    ierr = MatPinToCPU(*a_P_inout,PETSC_TRUE);CHKERRQ(ierr);

It does not seem to work. It does not look like CUDA has an MatCreateVecs.
Should I add one and copy this flag over?

Mark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20190723/92bcae9e/attachment.html>


More information about the petsc-dev mailing list