<div dir="ltr">Run with options: -mat_type aijcusparse -vec_type cuda -log_view -options_left<div><br></div><div>The last column of the performance data (from -log_view) will be the percent flops on the GPU. Check that that is > 0.</div><div><br></div><div>The end of the output will list the options that were used and options that were _not_ used (if any). Check that there are no options left.</div><div><br></div><div>Mark</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jun 29, 2023 at 7:50 PM Ng, Cho-Kuen via petsc-users <<a href="mailto:petsc-users@mcs.anl.gov">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 class="msg1877532259976660806">
<div dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
I installed PETSc on Perlmutter using "spack install <span style="background:rgb(255,255,255)">
petsc+cuda+zoltan</span><span style="background-color:rgb(255,255,255)">" </span>
and used it by "<span style="font-family:Arial,Helvetica,sans-serif;font-size:12pt;background:rgb(255,255,255);color:black">spack load petsc/fwge6pf</span>". Then I compiled the application code (purely CPU code) linking to
the petsc package, hoping that I can get performance improvement using the petsc GPU backend. However, the timing was the same using the same number of MPI tasks with and without GPU accelerators. Have I missed something in the process, for example, setting
up PETSc options at runtime to use the GPU backend?</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Thanks,</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Cho<br>
</div>
</div>
</div></blockquote></div>