<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Paul,</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Thank you for your suggestion. I will try different spack install specifications.</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Cho<br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Grosse-Bley, Paul Leonard <paul.grosse-bley@stud.uni-heidelberg.de><br>
<b>Sent:</b> Friday, June 30, 2023 4:07 AM<br>
<b>To:</b> Ng, Cho-Kuen <cho@slac.stanford.edu><br>
<b>Cc:</b> petsc-users@mcs.anl.gov <petsc-users@mcs.anl.gov><br>
<b>Subject:</b> Re: [petsc-users] Using PETSc GPU backend</font>
<div> </div>
</div>
<div>Hi Cho,<br>
<br>
you might want to specify the GPU architecture to make sure that everything is compiled optimally.<br>
I.e. "spack install petsc +cuda cuda_arch=80 +zoltan"<br>
<br>
Best,<br>
Paul<br>
<br>
<br>
On Friday, June 30, 2023 01:50 CEST, petsc-users-request@mcs.anl.gov wrote:<br>
<blockquote type="cite">Date: Thu, 29 Jun 2023 23:50:10 +0000<br>
From: "Ng, Cho-Kuen" <cho@slac.stanford.edu><br>
To: "petsc-users@mcs.anl.gov" <petsc-users@mcs.anl.gov><br>
Subject: [petsc-users] Using PETSc GPU backend<br>
Message-ID:<br>
<BYAPR07MB5431A3DACC91A963572D66E4E025A@BYAPR07MB5431.namprd07.prod.outlook.com><br>
<br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
I installed PETSc on Perlmutter using "spack install petsc+cuda+zoltan" and used it by "spack load petsc/fwge6pf". 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?<br>
<br>
Thanks,<br>
Cho</blockquote>
</div>
</body>
</html>