<div>Ok thanks for the answers, this would definitely be a super useful feature to have.<br></div><div><br></div><div class="protonmail_signature_block"><div class="protonmail_signature_block-user"><div><span class="colour" style="color:rgb(107,107,107);">Milan</span><br></div></div><div class="protonmail_signature_block-proton protonmail_signature_block-empty"></div></div><div><br></div><div class="protonmail_quote">
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐<br>
Le jeudi 7 octobre 2021 à 1:22 PM, Stefano Zampini <stefano.zampini@gmail.com> a écrit :<br>
<blockquote class="protonmail_quote" type="cite">
<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">Il giorno gio 7 ott 2021 alle ore 14:10 Mark Adams <<a href="mailto:mfadams@lbl.gov" rel="noreferrer nofollow noopener">mfadams@lbl.gov</a>> ha scritto:<br></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><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">On Wed, Oct 6, 2021 at 3:31 PM Milan Pelletier via petsc-users <<a target="_blank" href="mailto:petsc-users@mcs.anl.gov" rel="noreferrer nofollow noopener">petsc-users@mcs.anl.gov</a>> wrote:<br></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><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">Stefano</div>
</blockquote><br>
</div>