<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Unfortunately, `--enable-mutex-timing` is a leftover option that now does nothing. One option is to enable logging – following this guide https://wiki.mpich.org/mpich/index.php/Debug_Event_Logging . If you set `MPICH_DBG_CLASS=THREAD`,
 you should see in the log file entries like “enter/exit MPIDU_Thread_mutex_lock xxx”, with timestamps.
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">If that is insufficient for you, you may have manually insert your own timing harness. The file you should modify is `src/mpid/common/thread/mpidu_thread_fallback.h`.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Hope that helps.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<div>
<p class="MsoNormal">-- <br>
Hui Zhou<o:p></o:p></p>
</div>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="mso-margin-top-alt:0in;margin-right:0in;margin-bottom:12.0pt;margin-left:.5in">
<b><span style="font-size:12.0pt;color:black">From: </span></b><span style="font-size:12.0pt;color:black">Yongyu Chen via discuss <discuss@mpich.org><br>
<b>Date: </b>Wednesday, March 17, 2021 at 2:39 PM<br>
<b>To: </b>discuss@mpich.org <discuss@mpich.org><br>
<b>Cc: </b>Yongyu Chen <yongyu.chen@mail.ru><br>
<b>Subject: </b>[mpich-discuss] A question about mutex timing<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in">Dear sir or madam,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in">I enabled a feature on configuring the mpi library, which is --enable-mutex-timing (calculate the time spent waiting on mutexes).<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in">But I don’t know how to use it.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in">Could you provide me with some ideas or solutions?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in">Thank you for reading, I appreciate your replies!<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in">Sincerely,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in">Yongyu Chen<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"> <o:p></o:p></p>
</div>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-left:.5in">Sincerely,<br>
Yongyu Chen<o:p></o:p></p>
</div>
</div>
</div>
</div>
</body>
</html>