<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Feb 23, 2022 at 11:30 AM Qi Yang <<a href="mailto:qiyang@oakland.edu" target="_blank">qiyang@oakland.edu</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 dir="ltr">To whom it may concern,<div><br></div><div>Hope this email finds you well.</div><div><br></div><div>I am a student from Oakland University who is trying to use Petsc in my project.</div><div><br></div><div>I found that the Petsc 3.16 now is supporting AMG preconditioner of hypre with gpu on Nvidia and AMD card, however, do you use openCL to realize it ? </div></div></blockquote><div><br></div><div>No</div><div> </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"><div>or do you realize it by using cuda on Nvidia and hip on AMD, if it is not openCL, how do you enable with flag? like -pc_hypre_gamg_mat_type aijcusparse or just -mat_type aijcusparse(which is already used in former edition)? </div></div></blockquote><div><br></div><div>See the docs to install PETSc with CUDA support, etc, <a href="https://petsc.org/release/overview/" target="_blank">https://petsc.org/release/overview/</a></div><div><br></div><div>You can look at examples that use hypre, but first get your code working with built-in solver on the CPU, then turn CUDA on (--with-cuda=1) and use built-in solvers with CUDA (eg, -mat_type aijcusparse),</div><div>Then configure with hypre (--download-hypre) and try it with -pc_type hypre.</div><div><br></div><div>Good luck,</div><div>mark</div><div> <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"><div><br></div><div>Sorry for the disturbance, I did not find the answer in your document, looking forward to hearing from you soon.</div><div><br></div><div>Appreciate your time.</div><div><br></div><div>Best regards,</div><div>Qi</div></div>
</blockquote></div></div>