<div dir="ltr">Hello,<div><br></div><div>I used MPI_Win_free, and it returns error code: 45, Invalid MPI_Win. I checked all my code, but I still cannot find out where is the problem. I was wondering any one can give a suggestion?</div>

<div><br></div><div>I defined win as </div><div>MPI_Win win;</div><div><br></div><div>in RMA, I create a sub communicator: MPI_FOR_WORLD</div><div>MPI_Win_create(image_buff, 2*image_info->image_size*sizeof(uint16), sizeof(uint16), MPI_INFO_NULL, MPI_FOR_WORLD, win);<br>
</div><div><br></div><div>In other MPI_FOR_WORLD process:<br></div><div>MPI_Win_create(MPI_BOTTOM, 0, sizeof(uint16), MPI_INFO_NULL, MPI_FOR_WORLD, win);<br><br></div><div>I use MPI_Get, just as normal thing. no mem violation.<br>
<br></div><div>free it as</div><div>MPI_Win_free(&win);</div>
<div><br></div><div><div><div>I still cannot figure out why it keeps saying MPI_Win_free failed. Thank you very much for any suggestions.<br></div><div><br></div>-- <br>Best Regards,<div>Sufeng Niu</div><div>ECASP lab, ECE department, Illinois Institute of Technology</div>
<div>Tel: <a href="tel:312-731-7219" value="+13127317219" target="_blank">312-731-7219</a></div>
</div></div></div>