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