<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Dec 24, 2015 at 10:16 AM, Ajit Desai <span dir="ltr"><<a href="mailto:ajit.ndesai@gmail.com" target="_blank">ajit.ndesai@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 style="font-family:arial,helvetica,sans-serif">Hello everyone,</div><div style="font-family:arial,helvetica,sans-serif"><br></div><div style="font-family:arial,helvetica,sans-serif">New user of PETSc and trying to get familiar with it for parallel computing applications. <br></div><div style="font-family:arial,helvetica,sans-serif">I wrote simple hello world code using PETSc environment and found a issue with the output. For instance :</div><div style="font-family:arial,helvetica,sans-serif"><br></div><div style="font-family:arial,helvetica,sans-serif">When I compile and execute "PETSc_helloWorld.F90" code with multiple processor. It prints following output. </div></div></blockquote><div><br></div><div>Almost certainly you are using an 'mpiexec' that does not match the MPI library that you built PETSc with. Did you</div><div>use --download-mpich? Try this</div><div><br></div><div> cd $PETSC_DIR</div><div> make check</div><div><br></div><div>That will test it with the correct mpiexec.</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"><div dir="ltr"><div style="font-family:arial,helvetica,sans-serif"><p style="margin:0px;font-size:13px;line-height:normal;font-family:Menlo">MacUser$ <b>mpiexec -np 4 ./PETSc_helloWorld</b></p>
<p style="margin:0px;font-size:13px;line-height:normal;font-family:Menlo"><b> Hello from PETSc World, rank: 0 of total 1 processes.</b></p>
<p style="margin:0px;font-size:13px;line-height:normal;font-family:Menlo"><b> Hello from PETSc World, rank: 0 of total 1 processes.</b></p>
<p style="margin:0px;font-size:13px;line-height:normal;font-family:Menlo"><b> Hello from PETSc World, rank: 0 of total 1 processes.</b></p>
<p style="margin:0px;font-size:13px;line-height:normal;font-family:Menlo"><b> Hello from PETSc World, rank: 0 of total 1 processes.</b></p><div><br></div></div><div style="font-family:arial,helvetica,sans-serif"><br></div><div style="font-family:arial,helvetica,sans-serif">Similar code with MPI prints following output: </div><p style="margin:0px;font-size:13px;line-height:normal;font-family:Menlo"></p><div style="font-family:arial,helvetica,sans-serif;display:inline">MacUser</div>$ <b><span style="font-family:Menlo;font-size:13px">mpiexec</span> -np 4 ./a.out <br></b><p></p>
<p style="margin:0px;font-size:13px;line-height:normal;font-family:Menlo"><b> Hello from MPI World, rank: 0 </b></p><div style="font-family:arial,helvetica,sans-serif;display:inline"><b> </b></div><b> of total 4 processes.</b><p></p><b>
</b><p style="margin:0px;font-size:13px;line-height:normal;font-family:Menlo"><b> Hello from MPI World, rank: 1 </b></p><div style="font-family:arial,helvetica,sans-serif;display:inline"><b> </b></div><b> of total <div style="font-family:arial,helvetica,sans-serif;display:inline"> </div>4 processes.</b><p></p>
<p style="margin:0px;font-size:13px;line-height:normal;font-family:Menlo"><b> Hello from MPI World, rank: 2 </b></p><div style="font-family:arial,helvetica,sans-serif;display:inline"><b> </b></div><b> of total 4 processes.</b><p></p>
<div style="font-family:arial,helvetica,sans-serif"><b><span style="font-family:Menlo;font-size:13px"> </span><span style="font-family:Menlo;font-size:13px">Hello from MPI World, rank: </span><span style="font-family:Menlo;font-size:13px">3</span><span style="font-family:Menlo;font-size:13px"> </span><span style="font-family:Menlo;font-size:13px">of total </span><span style="font-family:Menlo;font-size:13px"> </span><span style="font-family:Menlo;font-size:13px">4</span><span style="font-family:Menlo;font-size:13px"> </span><span style="font-family:Menlo;font-size:13px">processes.</span> </b></div><div><br></div><div><div style="font-family:arial,helvetica,sans-serif">I am not sure is this the issue with the PETSc installation in my machine or am I missing something here?</div><div style="font-family:arial,helvetica,sans-serif">I have attached both codes and <i>log_summary</i> of PETSc for your convenience.</div><div style="font-family:arial,helvetica,sans-serif"><br></div><div style="font-family:arial,helvetica,sans-serif">Thanks & Regards,</div></div><div><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><b><font face="verdana, sans-serif">Ajit Desai</font><br></b></div><div><b><font face="verdana, sans-serif" size="1">--</font></b></div><div><div><font face="georgia, serif"><b> Carleton University </b></font></div><div><font face="georgia, serif"><b> Ottawa, Canada</b></font></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="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>