<div dir="ltr">Hi, Volkan,<div><br></div><div>What version are you looking at? If there is no specific reason, we would recommend you to use the newest mpich-3.0.4 which can be downloaded from <a href="http://www.mpich.org/downloads/">http://www.mpich.org/downloads/</a></div>
<div><br></div><div>The following are some documents to help you understand the function MPIR_Err_create_code. Basically what this function does is to return a error code when you do something wrong in MPI_ calls.</div><div>
<a href="http://wiki.mpich.org/mpich/index.php/Coding_Standards#Returning_Error_Codes">http://wiki.mpich.org/mpich/index.php/Coding_Standards#Returning_Error_Codes</a><br></div><div><a href="http://wiki.mpich.org/mpich/index.php/Reporting_And_Returning_Error_Codes">http://wiki.mpich.org/mpich/index.php/Reporting_And_Returning_Error_Codes</a><br>
</div><div><a href="http://wiki.mpich.org/mpich/index.php/Adding_New_Error_Messages">http://wiki.mpich.org/mpich/index.php/Adding_New_Error_Messages</a><br></div><div><br></div><div>To help you improve your code reading skills to solve future problems like this one. I would like to share with you one of my favorite books: Code Reading: The Open Source Perspective. <a href="http://www.spinellis.gr/codereading/">http://www.spinellis.gr/codereading/</a><br>
</div><div class="gmail_extra"><br></div><div class="gmail_extra">Best,<br clear="all"><div><div dir="ltr">Huiwei Lu<div><a href="http://www.mcs.anl.gov/~huiweilu/" target="_blank">http://www.mcs.anl.gov/~huiweilu/</a><br>
</div></div></div>
<br><br><div class="gmail_quote">On Fri, Sep 13, 2013 at 3:48 AM, 陈涛 <span dir="ltr"><<a href="mailto:volkanchen@gmail.com" target="_blank">volkanchen@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div><span style="font-size:14px;font-family:arial,sans-serif">To whom it may concern,</span><div style="font-size:14px;font-family:arial,sans-serif"><br></div><div><span style="font-family:arial,sans-serif;font-size:14px">I am trying to analyzing the source code of MPICH2. Currently I am studying the function </span><font face="arial, sans-serif"><span style="font-size:14px">MPI_Send(const void *buf, int count, MPI_Datatype datatype, int dest, int tag,</span></font><span style="font-size:14px;font-family:arial,sans-serif">MPI_Comm comm) in the file send.c. But it involves a commonly function </span><font face="arial, sans-serif"><span style="font-size:14px">MPIR_Err_create_code. It is really beyond my ability to understand this one and it drives me crazy. Could you help me with that or recommend me some materials analyzing that?</span></font></div>

<div style="font-size:14px;font-family:arial,sans-serif"><br></div><div style="font-size:14px;font-family:arial,sans-serif">Looking forward to your early reply.</div><div style="font-size:14px;font-family:arial,sans-serif">

<br></div><div style="font-size:14px;font-family:arial,sans-serif">Kind regards!</div><div style="font-size:14px;font-family:arial,sans-serif"><br></div><div style="font-size:14px;font-family:arial,sans-serif">Volkan</div>

<div style="font-size:14px;font-family:arial,sans-serif">2013-09-13</div><div style="font-size:14px;font-family:arial,sans-serif"><br></div><div style="font-size:14px;font-family:arial,sans-serif">你好!</div><div style="font-size:14px;font-family:arial,sans-serif">

我正分析MPICH2的源代码。目前在看send.c文件中的函数<font face="arial, sans-serif" style="font-size:small"><span style="font-size:14px">MPI_Send(const void *buf, int count, MPI_Datatype datatype, int dest, int tag,</span></font>MPI_Comm comm) 。其中涉及一个常用的函数MPIR_Err_create_code。我真的是搞不清楚它的作用是什么。请问高手能不能帮我分析一下或推荐相关的资料!不胜感激!</div>

<div style="font-size:14px;font-family:arial,sans-serif">祝好!</div></div></div>
<br>_______________________________________________<br>
discuss mailing list     <a href="mailto:discuss@mpich.org">discuss@mpich.org</a><br>
To manage subscription options or unsubscribe:<br>
<a href="https://lists.mpich.org/mailman/listinfo/discuss" target="_blank">https://lists.mpich.org/mailman/listinfo/discuss</a><br></blockquote></div><br></div></div>