<div dir="ltr"><div><div><div>Hi Dr. Pavan,<br><br></div>Thank you so much for your reply. Sorry to post the whole code. <br><br>I found out the where is the problem. due to my different communicator, 1 process doesn't create window. so I failed to free it.</div>
</div><div><br></div><div>Once again. Thanks a lot!</div><div><br></div><div>Sufeng</div><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jul 23, 2013 at 6:27 PM, Pavan Balaji <span dir="ltr"><<a 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"><br>
Please send a *simple* example which demonstrates the problem.<br>
<br>
I'm almost certain it's a problem with your application and not with MPI. Hence you going through the exercise of creating a simple example will allow you to figure out what's wrong.<br>
<br>
-- Pavan<div class="im"><br>
<br>
On 07/23/2013 06:10 PM, Sufeng Niu wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
sure, no problem. but I guess svn maybe easier. since there is some<br>
images file to run it. Can you use svn to clone it?<br>
<br>
it is: <a href="https://subversion.xray.aps.anl.gov/detpool/SUFENGNIU/MPI_Compression" target="_blank">https://subversion.xray.aps.<u></u>anl.gov/detpool/SUFENGNIU/MPI_<u></u>Compression</a><br>
<br>
just make, you need two terminals to run it. one terminal type:<br>
./run.perl main<br>
the second terminal type: ./udp_client 55Fe_run5.tif<br>
<br>
which is that the first terminal send the data, the second terminal<br>
receive it and process it.<br>
<br>
Thank you so much. Due to my limited knowledge I didn't find out where<br>
is the problem.<br>
<br>
once again, thanks a lot!<br>
<br>
Sufeng<br>
<br>
<br>
On Tue, Jul 23, 2013 at 6:00 PM, Pavan Balaji <<a href="mailto:balaji@mcs.anl.gov" target="_blank">balaji@mcs.anl.gov</a><br></div><div class="im">
<mailto:<a href="mailto:balaji@mcs.anl.gov" target="_blank">balaji@mcs.anl.gov</a>>> wrote:<br>
<br>
<br>
Can you send us a simple program that gives this error?<br>
<br>
-- Pavan<br>
<br>
<br>
On 07/23/2013 05:55 PM, Sufeng Niu wrote:<br>
<br>
Hello,<br>
<br>
I used MPI_Win_free, and it returns error code: 45, Invalid<br>
MPI_Win. I<br>
checked all my code, but I still cannot find out where is the<br>
problem. I<br>
was wondering any one can give a suggestion?<br>
<br>
I defined win as<br>
MPI_Win win;<br>
<br>
in RMA, I create a sub communicator: MPI_FOR_WORLD<br>
MPI_Win_create(image_buff,<br></div>
2*image_info->image_size*__<u></u>sizeof(uint16),<div class="im"><br>
sizeof(uint16), MPI_INFO_NULL, MPI_FOR_WORLD, win);<br>
<br>
In other MPI_FOR_WORLD process:<br>
MPI_Win_create(MPI_BOTTOM, 0, sizeof(uint16), MPI_INFO_NULL,<br>
MPI_FOR_WORLD, win);<br>
<br>
I use MPI_Get, just as normal thing. no mem violation.<br>
<br>
free it as<br>
MPI_Win_free(&win);<br>
<br>
I still cannot figure out why it keeps saying MPI_Win_free<br>
failed. Thank<br>
you very much for any suggestions.<br>
<br>
--<br>
Best Regards,<br>
Sufeng Niu<br>
ECASP lab, ECE department, Illinois Institute of Technology<br></div>
Tel: <a href="tel:312-731-7219" value="+13127317219" target="_blank">312-731-7219</a> <tel:<a href="tel:312-731-7219" value="+13127317219" target="_blank">312-731-7219</a>> <tel:<a href="tel:312-731-7219" value="+13127317219" target="_blank">312-731-7219</a><br>
<tel:<a href="tel:312-731-7219" value="+13127317219" target="_blank">312-731-7219</a>>><br>
<br>
<br>
______________________________<u></u>___________________<br>
discuss mailing list <a href="mailto:discuss@mpich.org" target="_blank">discuss@mpich.org</a> <mailto:<a href="mailto:discuss@mpich.org" target="_blank">discuss@mpich.org</a>><div class="im"><br>
To manage subscription options or unsubscribe:<br></div>
<a href="https://lists.mpich.org/__mailman/listinfo/discuss" target="_blank">https://lists.mpich.org/__<u></u>mailman/listinfo/discuss</a><div class="im"><br>
<<a href="https://lists.mpich.org/mailman/listinfo/discuss" target="_blank">https://lists.mpich.org/<u></u>mailman/listinfo/discuss</a>><br>
<br>
<br>
--<br>
Pavan Balaji<br>
<a href="http://www.mcs.anl.gov/~balaji" target="_blank">http://www.mcs.anl.gov/~balaji</a><br>
<br>
<br>
<br>
<br>
--<br>
Best Regards,<br>
Sufeng Niu<br>
ECASP lab, ECE department, Illinois Institute of Technology<br>
Tel: <a href="tel:312-731-7219" value="+13127317219" target="_blank">312-731-7219</a><br>
</div></blockquote><div class="HOEnZb"><div class="h5">
<br>
-- <br>
Pavan Balaji<br>
<a href="http://www.mcs.anl.gov/~balaji" target="_blank">http://www.mcs.anl.gov/~balaji</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Best Regards,<div>Sufeng Niu</div><div>ECASP lab, ECE department, Illinois Institute of Technology</div><div>Tel: 312-731-7219</div>
</div>