<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix"><br>
A profiling of both of your codes would help to understand where
the time is spent and the difference between them in terms of
performance.<br>
<br>
Antonio<br>
<br>
<br>
On 01/16/2014 12:47 PM, Luiz Carlos da Costa Junior wrote:<br>
</div>
<blockquote
cite="mid:CAOv4ofTX0FPAXrhxNKfSOZT3nzZ9GeyoOqEm=9O6PfSeyzQf-A@mail.gmail.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<div dir="ltr">Yes, I am comparing original x new implementation.
<div><br>
</div>
<div>The original implementation is as follows.</div>
<div><br>
</div>
<div><span style="font-family:'courier new',monospace">c-----------------------------------------------------------------------</span><br>
</div>
<div>
<div><font face="courier new, monospace"> subroutine
my_receiver_original</font></div>
<div><font face="courier new, monospace">c
------------------------------------------------------------------</font></div>
<div><font face="courier new, monospace"> (...)</font></div>
<div><font face="courier new, monospace"><br>
</font></div>
<div><font face="courier new, monospace">c Local</font></div>
<div><font face="courier new, monospace">c -----</font></div>
<div><font face="courier new, monospace"> integer*4
m_stat(MPI_STATUS_SIZE)</font></div>
<div><font face="courier new, monospace"> character
card*(zbuf) ! buffer for messages received</font></div>
<div><font face="courier new, monospace"><br>
</font></div>
<div><font face="courier new, monospace"> do while(
keep_receiving )</font></div>
<div><font face="courier new, monospace"> call
MPI_RECV(card, zbuf, MPI_CHARACTER,</font></div>
<div><font face="courier new, monospace"> .
MPI_ANY_SOURCE, M_RECCSV, MY_COMM,</font></div>
<div><font face="courier new, monospace"> .
m_stat, m_ierr )</font></div>
<div><font face="courier new, monospace"><br>
</font></div>
<div><font face="courier new, monospace">c Process
message: disk IO</font></div>
<div><font face="courier new, monospace">c
---------------</font></div>
<div><font face="courier new, monospace"> <DO
SOMETHING></font></div>
<div><font face="courier new, monospace"> if(
SOMETHING_ELSE ) then</font></div>
<div><font face="courier new, monospace">
keep_receiving = .false.</font></div>
<div><font face="courier new, monospace"> end if</font></div>
<div><font face="courier new, monospace"> end do</font></div>
<div><font face="courier new, monospace"><br>
</font></div>
<div><font face="courier new, monospace"> (...)</font></div>
<div><font face="courier new, monospace"><br>
</font></div>
<div><font face="courier new, monospace"> return</font></div>
<div><font face="courier new, monospace"> end</font></div>
</div>
<div class="gmail_extra"><br>
Regards,</div>
<div class="gmail_extra">Luiz</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On 16 January 2014 16:19, Balaji,
Pavan <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:balaji@mcs.anl.gov" target="_blank">balaji@mcs.anl.gov</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im"><br>
On Jan 16, 2014, at 12:16 PM, Luiz Carlos da Costa
Junior <<a moz-do-not-send="true"
href="mailto:lcjunior@ufrj.br">lcjunior@ufrj.br</a>>
wrote:<br>
> No, these failures don't occur all the time. I have
a successful run (with my original implementation) which
I am using as the base case for comparison.<br>
<br>
</div>
What are the two cases you are comparing? Original
implementation vs. new implementation? What’s the
original implementation?<br>
<div class="HOEnZb">
<div class="h5"><br>
— Pavan<br>
<br>
_______________________________________________<br>
discuss mailing list <a moz-do-not-send="true"
href="mailto:discuss@mpich.org">discuss@mpich.org</a><br>
To manage subscription options or unsubscribe:<br>
<a moz-do-not-send="true"
href="https://lists.mpich.org/mailman/listinfo/discuss"
target="_blank">https://lists.mpich.org/mailman/listinfo/discuss</a><br>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
discuss mailing list <a class="moz-txt-link-abbreviated" href="mailto:discuss@mpich.org">discuss@mpich.org</a>
To manage subscription options or unsubscribe:
<a class="moz-txt-link-freetext" href="https://lists.mpich.org/mailman/listinfo/discuss">https://lists.mpich.org/mailman/listinfo/discuss</a></pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Antonio J. Peña
Postdoctoral Appointee
Mathematics and Computer Science Division
Argonne National Laboratory
9700 South Cass Avenue, Bldg. 240, Of. 3148
Argonne, IL 60439-4847
<a class="moz-txt-link-abbreviated" href="mailto:apenya@mcs.anl.gov">apenya@mcs.anl.gov</a>
<a class="moz-txt-link-abbreviated" href="http://www.mcs.anl.gov/~apenya">www.mcs.anl.gov/~apenya</a></pre>
</body>
</html>