<div dir="ltr">We have discussed full runtime switch in HYPRE with Ruipeng few weeks ago, I'm not sure what's the status. cc'ing him<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno gio 7 ott 2021 alle ore 14:10 Mark Adams <<a href="mailto:mfadams@lbl.gov">mfadams@lbl.gov</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">I'm not sure, but I suspect that Hypre does not support runtime switching and our model is that you can switch at runtime. This leads to an inconsistency.<div><br><div>If we remove -mat_type hypre then your issue would go away but 1) we would have to add it back if hypre supports runtime switching in the future, and break everyone's input decks, and 2) it would be inconsistent with the PETSc model.</div></div><div><br></div><div>I could see throwing an error if you do not use -mat_type hypre and are configured for GPUs.</div><div><br></div><div>Mark</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Oct 6, 2021 at 3:31 PM Milan Pelletier via petsc-users <<a href="mailto:petsc-users@mcs.anl.gov" target="_blank">petsc-users@mcs.anl.gov</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>Dear PETSc users,<br></div><div><br></div><div><div>Is there a way to switch a runtime setting for PETSc+Hypre to run on CPU, even when it has been compiled to allow for GPU support?<br></div><div>I looks like setting the matrix and vector types to respectively "seqaij" and "seq" results in GPU computation when Hypre is used as a preconditioner. I thought GPU would be used only when mat_type is set to "hypre", following the examples provided with the last release.<br></div><div><br></div><div>Thanks for the help,<br></div><div>Best regards,<br></div><div><br></div></div><div><div><div><span style="color:rgb(107,107,107)">Milan</span><br></div></div><div></div></div><div><br></div></blockquote></div>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature">Stefano</div>