<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">Check `src/mpid/common/thread/mpidu_thread_fallback.h`. MPID_THREAD_ macros are defined to the `MPIDU_THREAD_` macros. This is to allow device override of locking mechanism. At some point, you may need look at `src/mpl/include/mpl_thread.h`,
which is where the actual mutex being defined.<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>Tuesday, February 2, 2021 at 10:34 AM<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] Question about counting the mutex waiting time<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"> <o:p></o:p></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’m currently working on a project with mpich.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in">I faced some difficulties when I would like to count the mutex waiting time, just like what they did on the paper, Fine-Grained Multithreading Support for Hybrid Threaded MPI Programming.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in">I could not find the definition of the function, MPID_THREAD_CS_ENTER(GLOBAL, MPIR_THREAD_GLOBAL_ALLFUNC_MUTEX).<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in">If you could provide me more detailed information, I will appreciate it.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in">Thank you in advance!<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>