<div dir="ltr"><div>Hi, Ling,</div><div> MatMult almost degraded 20%, which is a lot. Do you have configure.log for the two builds? We might find compiler discrepancies from it. <br></div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">--Junchao Zhang</div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Aug 21, 2024 at 8:57 AM Zou, Ling <<a href="mailto:lzou@anl.gov">lzou@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="msg-6745428070199113990">
<div lang="EN-US" style="overflow-wrap: break-word;">
<div class="m_-6745428070199113990WordSection1">
<p class="MsoNormal"><span style="font-size:11pt">Hi Junchao,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt">Yeah, I have part of the log_view, for the same code, same version of PETSc (3.20), but two OS (Ventura vs. Sonoma).<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt">Note that PETSc function call numbers are exactly the same.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt">I suspect that it’s just OS becomes slower, or maybe something related to the compiler.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt">-Ling<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt"><u></u> <u></u></span></p>
<table border="1" cellspacing="0" cellpadding="0" width="587" style="width:440.6pt;border-collapse:collapse;border:none">
<tbody>
<tr style="height:16pt">
<td width="144" nowrap valign="bottom" style="width:1.5in;border:1pt solid windowtext;padding:0in 5.4pt;height:16pt">
</td>
<td width="108" nowrap valign="bottom" style="width:81pt;border-top:1pt solid windowtext;border-right:1pt solid windowtext;border-bottom:1pt solid windowtext;border-left:none;padding:0in 5.4pt;height:16pt">
<p class="MsoNormal"><span style="font-family:"Aptos Narrow",sans-serif;color:black"># of calls<u></u><u></u></span></p>
</td>
<td width="167" nowrap valign="bottom" style="width:125.6pt;border-top:1pt solid windowtext;border-right:1pt solid windowtext;border-bottom:1pt solid windowtext;border-left:none;padding:0in 5.4pt;height:16pt">
<p class="MsoNormal"><span style="font-family:"Aptos Narrow",sans-serif;color:black">Time spent (Ventura)<u></u><u></u></span></p>
</td>
<td width="168" nowrap valign="bottom" style="width:1.75in;border-top:1pt solid windowtext;border-right:1pt solid windowtext;border-bottom:1pt solid windowtext;border-left:none;padding:0in 5.4pt;height:16pt">
<p class="MsoNormal"><span style="font-family:"Aptos Narrow",sans-serif;color:black">Time spent (Sonoma)<u></u><u></u></span></p>
</td>
</tr>
<tr style="height:16pt">
<td width="144" nowrap valign="bottom" style="width:1.5in;border-right:1pt solid windowtext;border-bottom:1pt solid windowtext;border-left:1pt solid windowtext;border-top:none;padding:0in 5.4pt;height:16pt">
<p class="MsoNormal"><span style="font-family:"Aptos Narrow",sans-serif;color:black">MatMult MF<u></u><u></u></span></p>
</td>
<td width="108" nowrap valign="bottom" style="width:81pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0in 5.4pt;height:16pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-family:"Aptos Narrow",sans-serif;color:black">20463<u></u><u></u></span></p>
</td>
<td width="167" nowrap valign="bottom" style="width:125.6pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0in 5.4pt;height:16pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-family:"Aptos Narrow",sans-serif;color:black">3.718600E+00<u></u><u></u></span></p>
</td>
<td width="168" nowrap valign="bottom" style="width:1.75in;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0in 5.4pt;height:16pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-family:"Aptos Narrow",sans-serif;color:black">4.467800E+00<u></u><u></u></span></p>
</td>
</tr>
<tr style="height:16pt">
<td width="144" nowrap valign="bottom" style="width:1.5in;border-right:1pt solid windowtext;border-bottom:1pt solid windowtext;border-left:1pt solid windowtext;border-top:none;padding:0in 5.4pt;height:16pt">
<p class="MsoNormal"><span style="font-family:"Aptos Narrow",sans-serif;color:black">MatMult<u></u><u></u></span></p>
</td>
<td width="108" nowrap valign="bottom" style="width:81pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0in 5.4pt;height:16pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-family:"Aptos Narrow",sans-serif;color:black">20463<u></u><u></u></span></p>
</td>
<td width="167" nowrap valign="bottom" style="width:125.6pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0in 5.4pt;height:16pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-family:"Aptos Narrow",sans-serif;color:black">3.721000E+00<u></u><u></u></span></p>
</td>
<td width="168" nowrap valign="bottom" style="width:1.75in;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0in 5.4pt;height:16pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-family:"Aptos Narrow",sans-serif;color:black">4.470500E+00<u></u><u></u></span></p>
</td>
</tr>
<tr style="height:16pt">
<td width="144" nowrap valign="bottom" style="width:1.5in;border-right:1pt solid windowtext;border-bottom:1pt solid windowtext;border-left:1pt solid windowtext;border-top:none;padding:0in 5.4pt;height:16pt">
<p class="MsoNormal"><span style="font-family:"Aptos Narrow",sans-serif;color:black">MatFDColorApply<u></u><u></u></span></p>
</td>
<td width="108" nowrap valign="bottom" style="width:81pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0in 5.4pt;height:16pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-family:"Aptos Narrow",sans-serif;color:black">2062<u></u><u></u></span></p>
</td>
<td width="167" nowrap valign="bottom" style="width:125.6pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0in 5.4pt;height:16pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-family:"Aptos Narrow",sans-serif;color:black">4.507000E+00<u></u><u></u></span></p>
</td>
<td width="168" nowrap valign="bottom" style="width:1.75in;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0in 5.4pt;height:16pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-family:"Aptos Narrow",sans-serif;color:black">5.394600E+00<u></u><u></u></span></p>
</td>
</tr>
<tr style="height:16pt">
<td width="144" nowrap valign="bottom" style="width:1.5in;border-right:1pt solid windowtext;border-bottom:1pt solid windowtext;border-left:1pt solid windowtext;border-top:none;padding:0in 5.4pt;height:16pt">
<p class="MsoNormal"><span style="font-family:"Aptos Narrow",sans-serif;color:black">MatFDColorFunc<u></u><u></u></span></p>
</td>
<td width="108" nowrap valign="bottom" style="width:81pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0in 5.4pt;height:16pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-family:"Aptos Narrow",sans-serif;color:black">24744<u></u><u></u></span></p>
</td>
<td width="167" nowrap valign="bottom" style="width:125.6pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0in 5.4pt;height:16pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-family:"Aptos Narrow",sans-serif;color:black">4.472400E+00<u></u><u></u></span></p>
</td>
<td width="168" nowrap valign="bottom" style="width:1.75in;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0in 5.4pt;height:16pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-family:"Aptos Narrow",sans-serif;color:black">5.356300E+00<u></u><u></u></span></p>
</td>
</tr>
<tr style="height:16pt">
<td width="144" nowrap valign="bottom" style="width:1.5in;border-right:1pt solid windowtext;border-bottom:1pt solid windowtext;border-left:1pt solid windowtext;border-top:none;padding:0in 5.4pt;height:16pt">
<p class="MsoNormal"><span style="font-family:"Aptos Narrow",sans-serif;color:black">KSPSolve<u></u><u></u></span></p>
</td>
<td width="108" nowrap valign="bottom" style="width:81pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0in 5.4pt;height:16pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-family:"Aptos Narrow",sans-serif;color:black">2062<u></u><u></u></span></p>
</td>
<td width="167" nowrap valign="bottom" style="width:125.6pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0in 5.4pt;height:16pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-family:"Aptos Narrow",sans-serif;color:black">3.569700E+00<u></u><u></u></span></p>
</td>
<td width="168" nowrap valign="bottom" style="width:1.75in;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0in 5.4pt;height:16pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-family:"Aptos Narrow",sans-serif;color:black">4.262400E+00<u></u><u></u></span></p>
</td>
</tr>
<tr style="height:16pt">
<td width="144" nowrap valign="bottom" style="width:1.5in;border-right:1pt solid windowtext;border-bottom:1pt solid windowtext;border-left:1pt solid windowtext;border-top:none;padding:0in 5.4pt;height:16pt">
<p class="MsoNormal"><span style="font-family:"Aptos Narrow",sans-serif;color:black">SNESSolve<u></u><u></u></span></p>
</td>
<td width="108" nowrap valign="bottom" style="width:81pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0in 5.4pt;height:16pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-family:"Aptos Narrow",sans-serif;color:black">986<u></u><u></u></span></p>
</td>
<td width="167" nowrap valign="bottom" style="width:125.6pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0in 5.4pt;height:16pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-family:"Aptos Narrow",sans-serif;color:black">9.195900E+00<u></u><u></u></span></p>
</td>
<td width="168" nowrap valign="bottom" style="width:1.75in;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0in 5.4pt;height:16pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-family:"Aptos Narrow",sans-serif;color:black">1.102000E+01<u></u><u></u></span></p>
</td>
</tr>
<tr style="height:16pt">
<td width="144" nowrap valign="bottom" style="width:1.5in;border-right:1pt solid windowtext;border-bottom:1pt solid windowtext;border-left:1pt solid windowtext;border-top:none;padding:0in 5.4pt;height:16pt">
<p class="MsoNormal"><span style="font-family:"Aptos Narrow",sans-serif;color:black">SNESFunctionEval<u></u><u></u></span></p>
</td>
<td width="108" nowrap valign="bottom" style="width:81pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0in 5.4pt;height:16pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-family:"Aptos Narrow",sans-serif;color:black">23575<u></u><u></u></span></p>
</td>
<td width="167" nowrap valign="bottom" style="width:125.6pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0in 5.4pt;height:16pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-family:"Aptos Narrow",sans-serif;color:black">4.268600E+00<u></u><u></u></span></p>
</td>
<td width="168" nowrap valign="bottom" style="width:1.75in;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0in 5.4pt;height:16pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-family:"Aptos Narrow",sans-serif;color:black">5.161100E+00<u></u><u></u></span></p>
</td>
</tr>
<tr style="height:16pt">
<td width="144" nowrap valign="bottom" style="width:1.5in;border-right:1pt solid windowtext;border-bottom:1pt solid windowtext;border-left:1pt solid windowtext;border-top:none;padding:0in 5.4pt;height:16pt">
<p class="MsoNormal"><span style="font-family:"Aptos Narrow",sans-serif;color:black">SNESJacobianEval<u></u><u></u></span></p>
</td>
<td width="108" nowrap valign="bottom" style="width:81pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0in 5.4pt;height:16pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-family:"Aptos Narrow",sans-serif;color:black">2062<u></u><u></u></span></p>
</td>
<td width="167" nowrap valign="bottom" style="width:125.6pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0in 5.4pt;height:16pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-family:"Aptos Narrow",sans-serif;color:black">4.509300E+00<u></u><u></u></span></p>
</td>
<td width="168" nowrap valign="bottom" style="width:1.75in;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0in 5.4pt;height:16pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-family:"Aptos Narrow",sans-serif;color:black">5.397500E+00<u></u><u></u></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span style="font-size:11pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt"><u></u> <u></u></span></p>
<div id="m_-6745428070199113990mail-editor-reference-message-container">
<div>
<div>
<div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(181,196,223);padding:3pt 0in 0in">
<p class="MsoNormal" style="margin-bottom:12pt"><b><span style="color:black">From:
</span></b><span style="color:black">Junchao Zhang <<a href="mailto:junchao.zhang@gmail.com" target="_blank">junchao.zhang@gmail.com</a>><br>
<b>Date: </b>Monday, August 19, 2024 at 10:04</span><span style="font-family:Arial,sans-serif;color:black"> </span><span style="color:black">PM<br>
<b>To: </b>Zou, Ling <<a href="mailto:lzou@anl.gov" target="_blank">lzou@anl.gov</a>><br>
<b>Cc: </b><a href="mailto:petsc-users@mcs.anl.gov" target="_blank">petsc-users@mcs.anl.gov</a> <<a href="mailto:petsc-users@mcs.anl.gov" target="_blank">petsc-users@mcs.anl.gov</a>><br>
<b>Subject: </b>Re: [petsc-users] Would Mac OS version affect PETSc/C/C++ performance?<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:1pt;color:white">Do you have -log_view report so that we can know which petsc functions degraded? Or is it because compilers were different? --Junchao Zhang On Sun, Aug 18, 2024
at 6:</span><span style="font-size:1pt;font-family:Arial,sans-serif;color:white"> </span><span style="font-size:1pt;color:white">04 PM Zou, Ling via petsc-users <petsc-users@</span><span style="font-size:1pt;font-family:Arial,sans-serif;color:white"> </span><span style="font-size:1pt;color:white">mcs.</span><span style="font-size:1pt;font-family:Arial,sans-serif;color:white"> </span><span style="font-size:1pt;color:white">anl.</span><span style="font-size:1pt;font-family:Arial,sans-serif;color:white"> </span><span style="font-size:1pt;color:white">gov>
wrote: Hi <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:1pt;color:white">ZjQcmQRYFpfptBannerStart<u></u><u></u></span></p>
</div>
<div style="border-width:initial;border-right-style:none;border-bottom-style:none;border-left-style:none;border-right-color:initial;border-bottom-color:initial;border-left-color:initial;display:block;text-align:left;margin:0px;padding:16px;border-radius:4px;min-width:200px;background-color:rgb(208,216,220);border-top-style:initial;border-top-color:rgb(144,164,174)" id="m_-6745428070199113990pfptBanner07azqi2">
<div id="m_-6745428070199113990pfptBanner07azqi2">
<div id="m_-6745428070199113990pfptBanner07azqi2">
<p class="MsoNormal" style="line-height:13.5pt;background:rgb(208,216,220)"><b><span style="font-family:Arial,sans-serif;color:black">This Message Is From an External Sender
<u></u><u></u></span></b></p>
</div>
<div id="m_-6745428070199113990pfptBanner07azqi2">
<p class="MsoNormal" style="line-height:13.5pt;background:rgb(208,216,220)"><span style="font-family:Arial,sans-serif;color:black">This message came from outside your organization.
<u></u><u></u></span></p>
</div>
</div>
<div>
<p class="MsoNormal" style="background:rgb(208,216,220)"><span style="color:black"> </span><u></u><u></u></p>
</div>
</div>
<div>
<p class="MsoNormal"><span style="font-size:1pt;color:white">ZjQcmQRYFpfptBannerEnd<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal">Do you have -log_view report so that we can know which petsc functions degraded? Or is it because compilers were different?<u></u><u></u></p>
<div>
<p class="MsoNormal"><br clear="all">
<u></u><u></u></p>
<div>
<div>
<div>
<p class="MsoNormal">--Junchao Zhang<u></u><u></u></p>
</div>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">On Sun, Aug 18, 2024 at 6:04<span style="font-family:Arial,sans-serif"> </span>PM Zou, Ling via petsc-users <<a href="mailto:petsc-users@mcs.anl.gov" target="_blank">petsc-users@mcs.anl.gov</a>> wrote:<u></u><u></u></p>
</div>
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0in 0in 0in 6pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11pt">Hi all,</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt">After updating Mac OS from Ventura to Sonoma, I am seeing my PETSc code having slightly-larger-than 10% of performance degradation (only in terms
of execution time).</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt">I track the number of major function calls, they are identical between the two OS (so PETSc is not the one to blame), but just slower.</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt">Is this something expected, any one also experienced it?</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt">-Ling</span><u></u><u></u></p>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</div>
</div>
</div></blockquote></div>