<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Mar 1, 2017 at 2:51 PM, Rodrigo Felicio <span dir="ltr"><<a href="mailto:Rodrigo.Felicio@iongeo.com" target="_blank">Rodrigo.Felicio@iongeo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Sorry, I spoke too soon...<br>
Reversing the order between mpi4py and petsc4py imports does work *only* on the master code side, but not on the child process code side. In that case, the program hangs after the children processes are fired up and fails the same way as reported before...<br></blockquote><div><br></div><div>Again, I have no idea what you mean here. I do not think you can separately run the two codes. How will the</div><div>PMI manager know that these two separate processes should be in the same communicator (WORLD). It</div><div>makes no sense to me. In MPI, you need to write the master and child in the same code, with a switch for the</div><div>master rank.</div><div><br></div><div> Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
cheers<br>
Rodrigo<br>
______________________________<wbr>__________<br>
From: <a href="mailto:petsc-users-bounces@mcs.anl.gov">petsc-users-bounces@mcs.anl.<wbr>gov</a> [<a href="mailto:petsc-users-bounces@mcs.anl.gov">petsc-users-bounces@mcs.anl.<wbr>gov</a>] on behalf of Rodrigo Felicio [<a href="mailto:Rodrigo.Felicio@iongeo.com">Rodrigo.Felicio@iongeo.com</a>]<br>
Sent: Wednesday, March 01, 2017 2:31 PM<br>
To: Barry Smith<br>
Cc: <a href="mailto:petsc-users@mcs.anl.gov">petsc-users@mcs.anl.gov</a><br>
Subject: Re: [petsc-users] petsc4py and MPI.COMM_SELF.Spawn<br>
<div class="HOEnZb"><div class="h5"><br>
I thought I had tried that as well with no success before, but this time it worked, despite some persistent error msgs related to PMI_finalize:<br>
<br>
time mpirun -n 1 python dyn_mem_ex.py<br>
proc 2 of 4 proc 3 of 4<br>
proc 1 of 4<br>
proc 0 of 4<br>
<br>
proc 1 of 4, Adim=[10]<br>
proc 2 of 4, Adim=[10]<br>
proc 0 of 4, Adim=[10]<br>
proc 3 of 4, Adim=[10]<br>
Adata = [ 0. 1. 2. 3. 4. 5. 6. 7. 8. 9.]<br>
Adata = [ 0. 1. 2. 3. 4. 5. 6. 7. 8. 9.]Adata = [ 0. 1. 2. 3. 4. 5. 6. 7. 8. 9.]<br>
<br>
Adata = [ 0. 1. 2. 3. 4. 5. 6. 7. 8. 9.]<br>
3.14160098692<br>
2.65258238441e-06<br>
[cli_0]: write_line error; fd=12 buf=:cmd=finalize<br>
:<br>
system msg for write_line failure : Bad file descriptor<br>
Fatal error in MPI_Finalize: Other MPI error, error stack:<br>
MPI_Finalize(281).....: MPI_Finalize failed<br>
MPI_Finalize(209).....:<br>
MPID_Finalize(133)....:<br>
MPIDI_PG_Finalize(106): PMI_Finalize failed, error -1<br>
<br>
real 0m0.586s<br>
user 0m0.536s<br>
sys 0m0.613s<br>
<br>
Best,<br>
Rodrigo<br>
<br>
______________________________<wbr>__<br>
<br>
<br>
This email and any files transmitted with it are confidential and are intended solely for the use of the individual or entity to whom they are addressed. If you are not the original recipient or the person responsible for delivering the email to the intended recipient, be advised that you have received this email in error, and that any use, dissemination, forwarding, printing, or copying of this email is strictly prohibited. If you received this email in error, please immediately notify the sender and delete the original.<br>
<br>
<br>
______________________________<wbr>__<br>
<br>
<br>
This email and any files transmitted with it are confidential and are intended solely for the use of the individual or entity to whom they are addressed. If you are not the original recipient or the person responsible for delivering the email to the intended recipient, be advised that you have received this email in error, and that any use, dissemination, forwarding, printing, or copying of this email is strictly prohibited. If you received this email in error, please immediately notify the sender and delete the original.<br>
<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div>
</div></div>